Package org.springframework.boot.logging
Class DeferredLog
java.lang.Object
org.springframework.boot.logging.DeferredLog
- All Implemented Interfaces:
- org.apache.commons.logging.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
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidbooleanbooleanbooleanbooleanbooleanbooleanstatic org.apache.commons.logging.LogReplay from a source log to a destination log when the source is deferred.static org.apache.commons.logging.Logreplay(org.apache.commons.logging.Log source, org.apache.commons.logging.Log destination) Replay from a source log to a destination log when the source is deferred.voidReplay deferred logging to the specified destination.voidreplayTo(org.apache.commons.logging.Log destination) Replay deferred logging to the specified destination.voidSwitch from deferred logging to immediate logging to the specified destination.voidswitchTo(org.apache.commons.logging.Log destination) Switch 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- org.apache.commons.logging.Log
 
- 
isDebugEnabledpublic boolean isDebugEnabled()- Specified by:
- isDebugEnabledin interface- org.apache.commons.logging.Log
 
- 
isInfoEnabledpublic boolean isInfoEnabled()- Specified by:
- isInfoEnabledin interface- org.apache.commons.logging.Log
 
- 
isWarnEnabledpublic boolean isWarnEnabled()- Specified by:
- isWarnEnabledin interface- org.apache.commons.logging.Log
 
- 
isErrorEnabledpublic boolean isErrorEnabled()- Specified by:
- isErrorEnabledin interface- org.apache.commons.logging.Log
 
- 
isFatalEnabledpublic boolean isFatalEnabled()- Specified by:
- isFatalEnabledin interface- org.apache.commons.logging.Log
 
- 
trace- Specified by:
- tracein interface- org.apache.commons.logging.Log
 
- 
trace- Specified by:
- tracein interface- org.apache.commons.logging.Log
 
- 
debug- Specified by:
- debugin interface- org.apache.commons.logging.Log
 
- 
debug- Specified by:
- debugin interface- org.apache.commons.logging.Log
 
- 
info- Specified by:
- infoin interface- org.apache.commons.logging.Log
 
- 
info- Specified by:
- infoin interface- org.apache.commons.logging.Log
 
- 
warn- Specified by:
- warnin interface- org.apache.commons.logging.Log
 
- 
warn- Specified by:
- warnin interface- org.apache.commons.logging.Log
 
- 
error- Specified by:
- errorin interface- org.apache.commons.logging.Log
 
- 
error- Specified by:
- errorin interface- org.apache.commons.logging.Log
 
- 
fatal- Specified by:
- fatalin interface- org.apache.commons.logging.Log
 
- 
fatal- Specified by:
- fatalin interface- org.apache.commons.logging.Log
 
- 
switchToSwitch from deferred logging to immediate logging to the specified destination.- Parameters:
- destination- the new log destination
- Since:
- 2.1.0
 
- 
switchTopublic void switchTo(org.apache.commons.logging.Log destination) Switch 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
 
- 
replayTopublic void replayTo(org.apache.commons.logging.Log destination) Replay deferred logging to the specified destination.- Parameters:
- destination- the destination for the deferred log messages
 
- 
replaypublic static org.apache.commons.logging.Log replay(org.apache.commons.logging.Log source, Class<?> destination) Replay 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
 
- 
replaypublic static org.apache.commons.logging.Log replay(org.apache.commons.logging.Log source, org.apache.commons.logging.Log destination) Replay 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
 
 
-