public class DeferredLogs extends Object implements DeferredLogFactory
DeferredLogFactory
implementation that manages a collection
DeferredLog
instances.Constructor and Description |
---|
DeferredLogs() |
Modifier and Type | Method and Description |
---|---|
Log |
getLog(Class<?> destination)
Create a new
DeferredLog for the given destination. |
Log |
getLog(Log destination)
Create a new
DeferredLog for the given destination. |
Log |
getLog(Supplier<Log> destination)
Create a new
DeferredLog for the given destination. |
void |
switchOverAll()
Switch over all deferred logs to their supplied destination.
|
public Log getLog(Class<?> destination)
DeferredLog
for the given destination.getLog
in interface DeferredLogFactory
destination
- the ultimate log destinationpublic Log getLog(Log destination)
DeferredLog
for the given destination.getLog
in interface DeferredLogFactory
destination
- the ultimate log destinationpublic Log getLog(Supplier<Log> destination)
DeferredLog
for the given destination.getLog
in interface DeferredLogFactory
destination
- the ultimate log destinationpublic void switchOverAll()