接口 DeferredLogFactory

所有已知实现类:
DeferredLogs
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface DeferredLogFactory
Factory that can be used to create multiple DeferredLog instances that will switch over when appropriate.
从以下版本开始:
2.4.0
作者:
Phillip Webb
另请参阅:
  • 方法详细资料

    • getLog

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