Class DeferredLog
java.lang.Object
org.springframework.boot.logging.DeferredLog
- All Implemented Interfaces:
Log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidbooleanbooleanbooleanbooleanbooleanbooleanstatic LogReplay from a source log to a destination log when the source is deferred.static LogReplay from a source log to a destination log when the source is deferred.voidReplay deferred logging to the specified destination.voidReplay deferred logging to the specified destination.voidSwitch from deferred logging to immediate logging to the specified destination.voidSwitch from deferred logging to immediate logging to the specified destination.voidvoidvoidvoid
-
Constructor Details
-
DeferredLog
public DeferredLog()Create a newDeferredLoginstance.
-
-
Method Details
-
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabledin interfaceLog
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceLog
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceLog
-
isFatalEnabled
public boolean isFatalEnabled()- Specified by:
isFatalEnabledin 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
-