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 org.jivesoftware.smack.debugger.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
.
-
-
Constructor Summary
Constructors Constructor Description AndroidDebugger(org.jivesoftware.smack.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
-
-
-
-
Method Detail
-
log
protected void log(java.lang.String logMessage)
- Specified by:
log
in classorg.jivesoftware.smack.debugger.AbstractDebugger
-
log
protected void log(java.lang.String logMessage, java.lang.Throwable throwable)
- Specified by:
log
in classorg.jivesoftware.smack.debugger.AbstractDebugger
-
-