mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 01:29:38 +02:00
SLF4J Smack Debugging Logger
This commit is contained in:
parent
880a348ff4
commit
52673bad3c
9 changed files with 326 additions and 0 deletions
|
@ -35,6 +35,7 @@ import javax.net.ssl.HostnameVerifier;
|
|||
|
||||
import org.jivesoftware.smack.compression.Java7ZlibInputOutputStream;
|
||||
import org.jivesoftware.smack.compression.XMPPInputOutputStream;
|
||||
import org.jivesoftware.smack.debugger.SmackDebugger;
|
||||
import org.jivesoftware.smack.initializer.SmackInitializer;
|
||||
import org.jivesoftware.smack.parsing.ExceptionThrowingCallback;
|
||||
import org.jivesoftware.smack.parsing.ParsingExceptionCallback;
|
||||
|
@ -256,6 +257,13 @@ public final class SmackConfiguration {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets smack debugger class
|
||||
*/
|
||||
public static <T extends SmackDebugger> void setDebugger(Class<T> debuggerClass) {
|
||||
System.setProperty("smack.debuggerClass", debuggerClass.getCanonicalName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a SASL mechanism from the list to be used.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue