From efc41e456f715abe57a69d6136a2d1a1098eae4c Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Fri, 19 Feb 2016 16:40:00 +0000
Subject: [PATCH] OPENDJ-2006 Add Jul to Slf4j bridge

---
 opendj-server-legacy/src/main/java/org/opends/server/loggers/TextErrorLogPublisher.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/loggers/TextErrorLogPublisher.java b/opendj-server-legacy/src/main/java/org/opends/server/loggers/TextErrorLogPublisher.java
index 9965fd0..520f3d2 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/loggers/TextErrorLogPublisher.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/loggers/TextErrorLogPublisher.java
@@ -62,6 +62,7 @@
 {
   private TextWriter writer;
   private FileBasedErrorLogPublisherCfg currentConfig;
+  private ServerContext serverContext;
 
   /**
    * Returns a new text error log publisher which will print all messages to the
@@ -105,6 +106,7 @@
   public void initializeLogPublisher(FileBasedErrorLogPublisherCfg config, ServerContext serverContext)
       throws ConfigException, InitializationException
   {
+    this.serverContext = serverContext;
     File logFile = getLogFile(config);
     FileNamingPolicy fnPolicy = new TimeStampNaming(logFile);
 
@@ -350,6 +352,7 @@
 
         currentConfig = config;
       }
+      serverContext.getLoggerConfigManager().adjustJulLevel();
     }
     catch(Exception e)
     {

--
Gitblit v1.10.0