类 DeferredLogs

java.lang.Object
org.springframework.boot.logging.DeferredLogs
所有已实现的接口:
DeferredLogFactory

public class DeferredLogs extends Object implements DeferredLogFactory
A DeferredLogFactory implementation that manages a collection DeferredLog instances.
从以下版本开始:
2.4.0
作者:
Phillip Webb
  • 构造器详细资料

    • DeferredLogs

      public DeferredLogs()
  • 方法详细资料

    • getLog

      public Log getLog(Class<?> destination)
      Create a new DeferredLog for the given destination.
      指定者:
      getLog 在接口中 DeferredLogFactory
      参数:
      destination - the ultimate log destination
      返回:
      a deferred log instance that will switch to the destination when appropriate.
    • getLog

      public Log getLog(Log destination)
      Create a new DeferredLog for the given destination.
      指定者:
      getLog 在接口中 DeferredLogFactory
      参数:
      destination - the ultimate log destination
      返回:
      a deferred log instance that will switch to the destination when appropriate.
    • getLog

      public Log getLog(Supplier<Log> destination)
      Create a new DeferredLog for the given destination.
      指定者:
      getLog 在接口中 DeferredLogFactory
      参数:
      destination - the ultimate log destination
      返回:
      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.