Package org.springframework.boot.logging
Interface DeferredLogFactory
- All Known Implementing Classes:
DeferredLogs
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory that can be used to create multiple
DeferredLog
instances that will
switch over when appropriate.- Since:
- 2.4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.apache.commons.logging.Log
Create a newDeferredLog
for the given destination.org.apache.commons.logging.Log
Create a newDeferredLog
for the given destination.default org.apache.commons.logging.Log
getLog
(org.apache.commons.logging.Log destination) Create a newDeferredLog
for the given destination.
-
Method Details
-
getLog
Create a newDeferredLog
for the given destination.- Parameters:
destination
- the ultimate log destination- Returns:
- a deferred log instance that will switch to the destination when appropriate.
-
getLog
default org.apache.commons.logging.Log getLog(org.apache.commons.logging.Log destination) Create a newDeferredLog
for the given destination.- 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.- Parameters:
destination
- the ultimate log destination- Returns:
- a deferred log instance that will switch to the destination when appropriate.
-