org.springframework.boot.logging

Class DeferredLogs

  • java.lang.Object
    • org.springframework.boot.logging.DeferredLogs
    • Constructor Summary

      Constructors 
      Constructor and Description
      DeferredLogs() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeferredLogs

        public DeferredLogs()
    • Method Detail

      • getLog

        public org.apache.commons.logging.Log getLog(java.lang.Class<?> destination)
        Create a new DeferredLog for the given destination.
        Specified by:
        getLog in interface DeferredLogFactory
        Parameters:
        destination - the ultimate log destination
        Returns:
        a deferred log instance that will switch to the destination when appropriate.
      • getLog

        public org.apache.commons.logging.Log getLog(org.apache.commons.logging.Log destination)
        Create a new DeferredLog for the given destination.
        Specified by:
        getLog in interface DeferredLogFactory
        Parameters:
        destination - the ultimate log destination
        Returns:
        a deferred log instance that will switch to the destination when appropriate.
      • getLog

        public org.apache.commons.logging.Log getLog(java.util.function.Supplier<org.apache.commons.logging.Log> destination)
        Create a new DeferredLog for the given destination.
        Specified by:
        getLog in interface DeferredLogFactory
        Parameters:
        destination - the ultimate log destination
        Returns:
        a deferred log instance that will switch to the destination when appropriate.
      • switchOverAll

        public void switchOverAll()
        Switch over all deferred logs to their supplied destination.