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