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.

@FunctionalInterface public interface DeferredLogFactory
Factory that can be used to create multiple DeferredLog instances that will switch over when appropriate.
Since:
2.4.0
Author:
Phillip Webb
See Also:
  • Method Details

    • getLog

      default Log getLog(Class<?> destination)
      Create a new DeferredLog 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 Log getLog(Log destination)
      Create a new DeferredLog for the given destination.
      Parameters:
      destination - the ultimate log destination
      Returns:
      a deferred log instance that will switch to the destination when appropriate.
    • getLog

      Log getLog(Supplier<Log> destination)
      Create a new DeferredLog for the given destination.
      Parameters:
      destination - the ultimate log destination
      Returns:
      a deferred log instance that will switch to the destination when appropriate.