LOG4J2-493 AsyncLoggerHelper constructor now takes context name;
formatted code.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/4e1fa44a
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/4e1fa44a
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/4e1fa44a

Branch: refs/heads/LOG4J2-1161
Commit: 4e1fa44af4ffbb088cceed9092a7866ae97e2384
Parents: 3705a75
Author: rpopma <rpo...@apache.org>
Authored: Fri Oct 23 02:22:34 2015 +0900
Committer: rpopma <rpo...@apache.org>
Committed: Fri Oct 23 02:22:34 2015 +0900

----------------------------------------------------------------------
 .../log4j/core/async/AsyncLoggerContext.java    | 27 ++++++++++----------
 1 file changed, 14 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4e1fa44a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerContext.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerContext.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerContext.java
index f9e707b..4efd7cc 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerContext.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerContext.java
@@ -30,38 +30,37 @@ import org.apache.logging.log4j.message.MessageFactory;
 public class AsyncLoggerContext extends LoggerContext {
 
     private static final long serialVersionUID = 1L;
-    
+
     private final AsyncLoggerHelper helper;
 
     public AsyncLoggerContext(final String name) {
         super(name);
-        helper = new AsyncLoggerHelper();
+        helper = new AsyncLoggerHelper(name);
     }
 
     public AsyncLoggerContext(final String name, final Object externalContext) 
{
         super(name, externalContext);
-        helper = new AsyncLoggerHelper();
+        helper = new AsyncLoggerHelper(name);
     }
 
-    public AsyncLoggerContext(final String name, final Object externalContext,
-            final URI configLocn) {
+    public AsyncLoggerContext(final String name, final Object externalContext, 
final URI configLocn) {
         super(name, externalContext, configLocn);
-        helper = new AsyncLoggerHelper();
+        helper = new AsyncLoggerHelper(name);
     }
 
-    public AsyncLoggerContext(final String name, final Object externalContext,
-            final String configLocn) {
+    public AsyncLoggerContext(final String name, final Object externalContext, 
final String configLocn) {
         super(name, externalContext, configLocn);
-        helper = new AsyncLoggerHelper();
+        helper = new AsyncLoggerHelper(name);
     }
 
     @Override
-    protected Logger newInstance(final LoggerContext ctx, final String name,
-            final MessageFactory messageFactory) {
+    protected Logger newInstance(final LoggerContext ctx, final String name, 
final MessageFactory messageFactory) {
         return new AsyncLogger(ctx, name, messageFactory, helper);
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.apache.logging.log4j.core.LoggerContext#start()
      */
     @Override
@@ -70,7 +69,9 @@ public class AsyncLoggerContext extends LoggerContext {
         super.start();
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see 
org.apache.logging.log4j.core.LoggerContext#start(org.apache.logging.log4j.core.config.Configuration)
      */
     @Override

Reply via email to