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.


    @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:
    DeferredLogs
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method and Description
      default org.apache.commons.logging.Log getLog(java.lang.Class<?> 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.
      org.apache.commons.logging.Log getLog(java.util.function.Supplier<org.apache.commons.logging.Log> destination)
      Create a new DeferredLog for the given destination.
    • Method Detail

      • getLog

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