You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2017/08/14 01:44:09 UTC

logging-log4j2 git commit: Forgot the singleton instance.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master b41b5cc86 -> 6dd56d0f7


Forgot the singleton instance.

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

Branch: refs/heads/master
Commit: 6dd56d0f7ff7b461c83dfa44f8b6208aee12ddc8
Parents: b41b5cc
Author: Gary Gregory <ga...@gmail.com>
Authored: Sun Aug 13 19:44:06 2017 -0600
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sun Aug 13 19:44:06 2017 -0600

----------------------------------------------------------------------
 .../apache/logging/log4j/core/DefaultLoggerContextAccessor.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/6dd56d0f/log4j-core/src/main/java/org/apache/logging/log4j/core/DefaultLoggerContextAccessor.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/DefaultLoggerContextAccessor.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/DefaultLoggerContextAccessor.java
index 1953519..6ad5c1f 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/DefaultLoggerContextAccessor.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/DefaultLoggerContextAccessor.java
@@ -22,6 +22,11 @@ package org.apache.logging.log4j.core;
  */
 public class DefaultLoggerContextAccessor implements LoggerContextAccessor {
 
+    /**
+     * Singleton insstamce.
+     */
+    public static DefaultLoggerContextAccessor INSTANCE = new DefaultLoggerContextAccessor();
+
     /*
      * Returns the current LoggerContext.
      *