Package org.jivesoftware.smack.debugger
Class ConsoleDebugger
java.lang.Object
org.jivesoftware.smack.debugger.SmackDebugger
org.jivesoftware.smack.debugger.AbstractDebugger
org.jivesoftware.smack.debugger.ConsoleDebugger
Very simple debugger that prints to the console (stdout) the sent and received stanzas. Use
this debugger with caution since printing to the console is an expensive operation that may
even block the thread since only one thread may print at a time.
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 the printInterpreted
static variable to true
.
-
Nested Class Summary
Nested Classes -
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 -
Method Summary
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 Details
-
ConsoleDebugger
-
-
Method Details
-
log
- Specified by:
log
in classAbstractDebugger
-
log
- Specified by:
log
in classAbstractDebugger
-