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
- Author:
- Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newDeferredLog
for the given destination.Create a newDeferredLog
for the given destination.Create a newDeferredLog
for the given destination.void
Switch over all deferred logs to their supplied destination.
-
Constructor Details
-
DeferredLogs
public DeferredLogs()
-
-
Method Details
-
getLog
Create a newDeferredLog
for the given destination.- Specified by:
getLog
in interfaceDeferredLogFactory
- Parameters:
destination
- the ultimate log destination- Returns:
- a deferred log instance that will switch to the destination when appropriate.
-
getLog
Create a newDeferredLog
for the given destination.- Specified by:
getLog
in interfaceDeferredLogFactory
- Parameters:
destination
- the ultimate log destination- Returns:
- a deferred log instance that will switch to the destination when appropriate.
-
getLog
Create a newDeferredLog
for the given destination.- Specified by:
getLog
in interfaceDeferredLogFactory
- Parameters:
destination
- the ultimate log destination- Returns:
- a deferred log instance that will switch to the destination when appropriate.
-
switchOverAll
public void switchOverAll()Switch over all deferred logs to their supplied destination.
-