diff --git a/slf4j-api/src/main/java/org/slf4j/helpers/SubstituteLogger.java b/slf4j-api/src/main/java/org/slf4j/helpers/SubstituteLogger.java
index 7be67d78..40f4251c 100644
--- a/slf4j-api/src/main/java/org/slf4j/helpers/SubstituteLogger.java
+++ b/slf4j-api/src/main/java/org/slf4j/helpers/SubstituteLogger.java
@@ -47,11 +47,11 @@ import org.slf4j.event.SubstituteLoggingEvent;
public class SubstituteLogger implements Logger {
private final String name;
-
private volatile Logger _delegate;
+ private Boolean delegateEventAware;
+ private Method logMethodCache;
private EventRecodingLogger eventRecodingLogger;
-
- List
The trace level was added to log4j in version 1.2.12 released - on August 29, 2005. The trace level was added to the SLF4J API in - version 1.4.0 on May 16th, 2007. Thus, starting with SLF4J 1.4.0, - the log4j binding for SLF4J requires log4j version 1.2.12 or - above. +
since 1.7.15 Logging calls made + during the initilization phase are recorded and replayed + post-inititilization. Note that the replayed logging calls are + subject to filtering by the underlying logging system.
+ +In principle, replaying only occurs for apllications which are + already multi-threaded at the time the first logging call occurs.
-However, as reported in issue 59, in some
- environments it may be difficult to upgrade the log4j version. To
- accommodate such circumstances, SLF4J's
- Log4jLoggerAdapter will map the TRACE level as
- DEBUG.
See also substitute loggers.
+ +See also intercepted and replayed logging + calls.
+ + -since 1.7.15 As of SLF4J version - 1.7.15, logging calls made during the initilization phase are - recorded and replayed post-inititilization.
+These replayed logging calls are subject to filtering by the - underlying logging system.
- -Replaying only occurs for apllications which are already - multi-threaded when the first logging call occurs. +
The trace level was added to log4j in version 1.2.12 released + on August 29, 2005. The trace level was added to the SLF4J API in + version 1.4.0 on May 16th, 2007. Thus, starting with SLF4J 1.4.0, + the log4j binding for SLF4J requires log4j version 1.2.12 or + above.
- + +However, as reported in issue 59, in some
+ environments it may be difficult to upgrade the log4j version. To
+ accommodate such circumstances, SLF4J's
+ Log4jLoggerAdapter will map the TRACE level as
+ DEBUG.
In previous versions of SLF4J, if the application was already + multi-threaded at the time the first SLF4J logger was created, logs + made during the SLF4J initialization phase were lost. New code + added in relation with SLF4J-353 fixes this + problem by storing and replaying logging calls made during + initialization. +
+ +The assignment of the INITIALIZATION_STATE variable in
LoggerFactory is now guaranteed to be consistent for