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
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default org.apache.commons.logging.Log
    getLog(Class<?> destination)
    Create a new DeferredLog for the given destination.
    org.apache.commons.logging.Log
    getLog(Supplier<org.apache.commons.logging.Log> destination)
    Create a new DeferredLog for the given destination.
    default org.apache.commons.logging.Log
    getLog(org.apache.commons.logging.Log destination)
    Create a new DeferredLog for the given destination.
  • Method Details

    • getLog

      default org.apache.commons.logging.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 org.apache.commons.logging.Log getLog(org.apache.commons.logging.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

      org.apache.commons.logging.Log getLog(Supplier<org.apache.commons.logging.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.