Class AndroidDebugger
- java.lang.Object
-
- org.jivesoftware.smack.debugger.SmackDebugger
-
- org.jivesoftware.smack.debugger.AbstractDebugger
-
- org.jivesoftware.smackx.debugger.android.AndroidDebugger
-
public class AndroidDebugger extends AbstractDebugger
Very simple debugger that prints to the android log the sent and received stanzas.Only use this debugger if really required, Android has a good java.util.logging implementation, therefore
It is possible to not only print the raw sent and received stanzas but also the interpreted packets by Smack. By default interpreted packets won't be printed. To enable this feature just change theJulDebugger
is preferred.printInterpreted
static variable totrue
.
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smack.debugger.AbstractDebugger
printInterpreted
-
Fields inherited from class org.jivesoftware.smack.debugger.SmackDebugger
connection
-
-
Constructor Summary
Constructors Constructor Description AndroidDebugger(XMPPConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
log(java.lang.String logMessage)
protected void
log(java.lang.String logMessage, java.lang.Throwable throwable)
-
Methods inherited from class org.jivesoftware.smack.debugger.AbstractDebugger
incomingStreamSink, onIncomingStreamElement, onOutgoingStreamElement, outgoingStreamSink, userHasLogged
-
Methods inherited from class org.jivesoftware.smack.debugger.SmackDebugger
newConnectionReader, newConnectionWriter, onIncomingElementCompleted, onOutgoingElementCompleted
-
-
-
-
Constructor Detail
-
AndroidDebugger
public AndroidDebugger(XMPPConnection connection)
-
-
Method Detail
-
log
protected void log(java.lang.String logMessage)
- Specified by:
log
in classAbstractDebugger
-
log
protected void log(java.lang.String logMessage, java.lang.Throwable throwable)
- Specified by:
log
in classAbstractDebugger
-
-