aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-21 00:15:29 +0300
committerGravatar Vitaly Takmazov2018-04-21 00:15:29 +0300
commit3211ae938c2fe8a38baa09e984ffc19ba71c47da (patch)
tree507af559e3de7e9ad7e780ee87be0f6b3d4a8f65
parentc49e9a80f61e2a89e976c448fe5bd01f34ca213e (diff)
server: separate xmpp logger
-rw-r--r--juick-common/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java2
-rw-r--r--juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/juick-common/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java b/juick-common/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java
index 0b31ee87..aae49bc7 100644
--- a/juick-common/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java
+++ b/juick-common/src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java
@@ -32,7 +32,7 @@ public class LogbackDebugger implements XmppDebugger {
@Override
public void initialize(XmppSession xmppSession) {
- logger = LoggerFactory.getLogger(xmppSession.getClass());
+ logger = LoggerFactory.getLogger("com.juick.server.xmpp");
}
@Override
diff --git a/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java b/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java
index a324282c..bf8ed228 100644
--- a/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java
+++ b/juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java
@@ -58,7 +58,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
*/
@Component
public class XMPPServer implements ConnectionListener, AutoCloseable {
- private static final Logger logger = LoggerFactory.getLogger(XMPPServer.class);
+ private static final Logger logger = LoggerFactory.getLogger("com.juick.server.xmpp");
private static final int TIMEOUT_MINUTES = 15;