Package org.jivesoftware.smack.debugger
Class JulDebugger
java.lang.Object
org.jivesoftware.smack.debugger.SmackDebugger
org.jivesoftware.smack.debugger.AbstractDebugger
org.jivesoftware.smack.debugger.JulDebugger
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
.
-
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
-
JulDebugger
-
-
Method Details
-
log
- Specified by:
log
in classAbstractDebugger
-
log
- Specified by:
log
in classAbstractDebugger
-