类 DeferredLog

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

public class DeferredLog extends Object implements Log
Deferred Log that can be used to store messages that shouldn't be written until the logging system is fully initialized.
从以下版本开始:
1.3.0
作者:
Phillip Webb
  • 构造器详细资料

    • DeferredLog

      public DeferredLog()
      Create a new DeferredLog instance.
  • 方法详细资料

    • isTraceEnabled

      public boolean isTraceEnabled()
      指定者:
      isTraceEnabled 在接口中 Log
    • isDebugEnabled

      public boolean isDebugEnabled()
      指定者:
      isDebugEnabled 在接口中 Log
    • isInfoEnabled

      public boolean isInfoEnabled()
      指定者:
      isInfoEnabled 在接口中 Log
    • isWarnEnabled

      public boolean isWarnEnabled()
      指定者:
      isWarnEnabled 在接口中 Log
    • isErrorEnabled

      public boolean isErrorEnabled()
      指定者:
      isErrorEnabled 在接口中 Log
    • isFatalEnabled

      public boolean isFatalEnabled()
      指定者:
      isFatalEnabled 在接口中 Log
    • trace

      public void trace(Object message)
      指定者:
      trace 在接口中 Log
    • trace

      public void trace(Object message, Throwable t)
      指定者:
      trace 在接口中 Log
    • debug

      public void debug(Object message)
      指定者:
      debug 在接口中 Log
    • debug

      public void debug(Object message, Throwable t)
      指定者:
      debug 在接口中 Log
    • info

      public void info(Object message)
      指定者:
      info 在接口中 Log
    • info

      public void info(Object message, Throwable t)
      指定者:
      info 在接口中 Log
    • warn

      public void warn(Object message)
      指定者:
      warn 在接口中 Log
    • warn

      public void warn(Object message, Throwable t)
      指定者:
      warn 在接口中 Log
    • error

      public void error(Object message)
      指定者:
      error 在接口中 Log
    • error

      public void error(Object message, Throwable t)
      指定者:
      error 在接口中 Log
    • fatal

      public void fatal(Object message)
      指定者:
      fatal 在接口中 Log
    • fatal

      public void fatal(Object message, Throwable t)
      指定者:
      fatal 在接口中 Log
    • switchTo

      public void switchTo(Class<?> destination)
      Switch from deferred logging to immediate logging to the specified destination.
      参数:
      destination - the new log destination
      从以下版本开始:
      2.1.0
    • switchTo

      public void switchTo(Log destination)
      Switch from deferred logging to immediate logging to the specified destination.
      参数:
      destination - the new log destination
      从以下版本开始:
      2.1.0
    • replayTo

      public void replayTo(Class<?> destination)
      Replay deferred logging to the specified destination.
      参数:
      destination - the destination for the deferred log messages
    • replayTo

      public void replayTo(Log destination)
      Replay deferred logging to the specified destination.
      参数:
      destination - the destination for the deferred log messages
    • replay

      public static Log replay(Log source, Class<?> destination)
      Replay from a source log to a destination log when the source is deferred.
      参数:
      source - the source logger
      destination - the destination logger class
      返回:
      the destination
    • replay

      public static Log replay(Log source, Log destination)
      Replay from a source log to a destination log when the source is deferred.
      参数:
      source - the source logger
      destination - the destination logger
      返回:
      the destination