Repository: logging-log4j2 Updated Branches: refs/heads/LOG4J-1181 2414d229c -> 123a5817a
Add // comment. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/e7a05912 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/e7a05912 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/e7a05912 Branch: refs/heads/LOG4J-1181 Commit: e7a059128fc162713b10ae4ae9155568f1d382ce Parents: 87ce6e7 Author: ggregory <ggreg...@apache.org> Authored: Mon Nov 2 06:59:20 2015 -0800 Committer: ggregory <ggreg...@apache.org> Committed: Mon Nov 2 06:59:20 2015 -0800 ---------------------------------------------------------------------- .../java/org/apache/logging/log4j/simple/SimpleLoggerContext.java | 1 + .../src/main/java/org/apache/logging/log4j/core/LoggerContext.java | 1 + 2 files changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e7a05912/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java ---------------------------------------------------------------------- diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java b/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java index d11d73f..4967ea6 100644 --- a/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java +++ b/log4j-api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java @@ -101,6 +101,7 @@ public class SimpleLoggerContext implements LoggerContext { @Override public ExtendedLogger getLogger(final String name, final MessageFactory messageFactory) { + // Note: This is the only method where we add entries to the 'loggers' ivar. // The loggers map key is the logger name plus the messageFactory FQCN (if any). String key = name; if (messageFactory != null) { http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e7a05912/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java index 4ca8723..0a2ee3f 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java @@ -392,6 +392,7 @@ public class LoggerContext extends AbstractLifeCycle implements org.apache.loggi */ @Override public Logger getLogger(final String name, final MessageFactory messageFactory) { + // Note: This is the only method where we add entries to the 'loggers' ivar. // The loggers map key is the logger name plus the messageFactory FQCN (if any). String key = name; if (messageFactory != null) {