Package org.springframework.boot.logging
Class DeferredLogs
java.lang.Object
org.springframework.boot.logging.DeferredLogs
- All Implemented Interfaces:
- DeferredLogFactory
A 
DeferredLogFactory implementation that manages a collection
 DeferredLog instances.- Since:
- 2.4.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.commons.logging.LogCreate a newDeferredLogfor the given destination.org.apache.commons.logging.LogCreate a newDeferredLogfor the given destination.org.apache.commons.logging.LoggetLog(org.apache.commons.logging.Log destination) Create a newDeferredLogfor the given destination.voidSwitch over all deferred logs to their supplied destination.
- 
Constructor Details- 
DeferredLogspublic DeferredLogs()
 
- 
- 
Method Details- 
getLogCreate a newDeferredLogfor the given destination.- Specified by:
- getLogin interface- DeferredLogFactory
- Parameters:
- destination- the ultimate log destination
- Returns:
- a deferred log instance that will switch to the destination when appropriate.
 
- 
getLogpublic org.apache.commons.logging.Log getLog(org.apache.commons.logging.Log destination) Create a newDeferredLogfor the given destination.- Specified by:
- getLogin interface- DeferredLogFactory
- Parameters:
- destination- the ultimate log destination
- Returns:
- a deferred log instance that will switch to the destination when appropriate.
 
- 
getLogCreate a newDeferredLogfor the given destination.- Specified by:
- getLogin interface- DeferredLogFactory
- Parameters:
- destination- the ultimate log destination
- Returns:
- a deferred log instance that will switch to the destination when appropriate.
 
- 
switchOverAllpublic void switchOverAll()Switch over all deferred logs to their supplied destination.
 
-