Package org.springframework.boot.logging
Class DeferredLog
java.lang.Object
org.springframework.boot.logging.DeferredLog
- All Implemented Interfaces:
Log
Deferred
Log
that can be used to store messages that shouldn't be written until
the logging system is fully initialized.- Since:
- 1.3.0
- Author:
- Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
boolean
boolean
boolean
boolean
boolean
boolean
static Log
Replay from a source log to a destination log when the source is deferred.static Log
Replay from a source log to a destination log when the source is deferred.void
Replay deferred logging to the specified destination.void
Replay deferred logging to the specified destination.void
Switch from deferred logging to immediate logging to the specified destination.void
Switch from deferred logging to immediate logging to the specified destination.void
void
void
void
-
Constructor Details
-
DeferredLog
public DeferredLog()Create a newDeferredLog
instance.
-
-
Method Details
-
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabled
in interfaceLog
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceLog
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceLog
-
isFatalEnabled
public boolean isFatalEnabled()- Specified by:
isFatalEnabled
in interfaceLog
-
trace
-
trace
-
debug
-
debug
-
info
-
info
-
warn
-
warn
-
error
-
error
-
fatal
-
fatal
-
switchTo
Switch from deferred logging to immediate logging to the specified destination.- Parameters:
destination
- the new log destination- Since:
- 2.1.0
-
switchTo
Switch from deferred logging to immediate logging to the specified destination.- Parameters:
destination
- the new log destination- Since:
- 2.1.0
-
replayTo
Replay deferred logging to the specified destination.- Parameters:
destination
- the destination for the deferred log messages
-
replayTo
Replay deferred logging to the specified destination.- Parameters:
destination
- the destination for the deferred log messages
-
replay
Replay from a source log to a destination log when the source is deferred.- Parameters:
source
- the source loggerdestination
- the destination logger class- Returns:
- the destination
-
replay
Replay from a source log to a destination log when the source is deferred.- Parameters:
source
- the source loggerdestination
- the destination logger- Returns:
- the destination
-