From 3211ae938c2fe8a38baa09e984ffc19ba71c47da Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 21 Apr 2018 00:15:29 +0300 Subject: server: separate xmpp logger --- .../src/main/java/rocks/xmpp/core/session/debug/LogbackDebugger.java | 2 +- juick-server-xmpp/src/main/java/com/juick/server/XMPPServer.java | 2 +- 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; -- cgit v1.2.3