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 SummaryConstructors
- 
Method SummaryModifier 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- 
DeferredLogpublic DeferredLog()Create a newDeferredLoginstance.
 
- 
- 
Method Details- 
isTraceEnabledpublic boolean isTraceEnabled()- Specified by:
- isTraceEnabledin interface- Log
 
- 
isDebugEnabledpublic boolean isDebugEnabled()- Specified by:
- isDebugEnabledin interface- Log
 
- 
isInfoEnabledpublic boolean isInfoEnabled()- Specified by:
- isInfoEnabledin interface- Log
 
- 
isWarnEnabledpublic boolean isWarnEnabled()- Specified by:
- isWarnEnabledin interface- Log
 
- 
isErrorEnabledpublic boolean isErrorEnabled()- Specified by:
- isErrorEnabledin interface- Log
 
- 
isFatalEnabledpublic boolean isFatalEnabled()- Specified by:
- isFatalEnabledin interface- Log
 
- 
trace
- 
trace
- 
debug
- 
debug
- 
info
- 
info
- 
warn
- 
warn
- 
error
- 
error
- 
fatal
- 
fatal
- 
switchToSwitch from deferred logging to immediate logging to the specified destination.- Parameters:
- destination- the new log destination
- Since:
- 2.1.0
 
- 
switchToSwitch from deferred logging to immediate logging to the specified destination.- Parameters:
- destination- the new log destination
- Since:
- 2.1.0
 
- 
replayToReplay deferred logging to the specified destination.- Parameters:
- destination- the destination for the deferred log messages
 
- 
replayToReplay deferred logging to the specified destination.- Parameters:
- destination- the destination for the deferred log messages
 
- 
replayReplay from a source log to a destination log when the source is deferred.- Parameters:
- source- the source logger
- destination- the destination logger class
- Returns:
- the destination
 
- 
replayReplay from a source log to a destination log when the source is deferred.- Parameters:
- source- the source logger
- destination- the destination logger
- Returns:
- the destination
 
 
-