类 DeferredLog

  • 所有已实现的接口:
    org.apache.commons.logging.Log

    public class DeferredLog
    extends Object
    implements org.apache.commons.logging.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
    • 方法详细资料

      • isTraceEnabled

        public boolean isTraceEnabled()
        指定者:
        isTraceEnabled 在接口中 org.apache.commons.logging.Log
      • isDebugEnabled

        public boolean isDebugEnabled()
        指定者:
        isDebugEnabled 在接口中 org.apache.commons.logging.Log
      • isInfoEnabled

        public boolean isInfoEnabled()
        指定者:
        isInfoEnabled 在接口中 org.apache.commons.logging.Log
      • isWarnEnabled

        public boolean isWarnEnabled()
        指定者:
        isWarnEnabled 在接口中 org.apache.commons.logging.Log
      • isErrorEnabled

        public boolean isErrorEnabled()
        指定者:
        isErrorEnabled 在接口中 org.apache.commons.logging.Log
      • isFatalEnabled

        public boolean isFatalEnabled()
        指定者:
        isFatalEnabled 在接口中 org.apache.commons.logging.Log
      • trace

        public void trace​(Object message)
        指定者:
        trace 在接口中 org.apache.commons.logging.Log
      • trace

        public void trace​(Object message,
                          Throwable t)
        指定者:
        trace 在接口中 org.apache.commons.logging.Log
      • debug

        public void debug​(Object message)
        指定者:
        debug 在接口中 org.apache.commons.logging.Log
      • debug

        public void debug​(Object message,
                          Throwable t)
        指定者:
        debug 在接口中 org.apache.commons.logging.Log
      • info

        public void info​(Object message)
        指定者:
        info 在接口中 org.apache.commons.logging.Log
      • info

        public void info​(Object message,
                         Throwable t)
        指定者:
        info 在接口中 org.apache.commons.logging.Log
      • warn

        public void warn​(Object message)
        指定者:
        warn 在接口中 org.apache.commons.logging.Log
      • warn

        public void warn​(Object message,
                         Throwable t)
        指定者:
        warn 在接口中 org.apache.commons.logging.Log
      • error

        public void error​(Object message)
        指定者:
        error 在接口中 org.apache.commons.logging.Log
      • error

        public void error​(Object message,
                          Throwable t)
        指定者:
        error 在接口中 org.apache.commons.logging.Log
      • fatal

        public void fatal​(Object message)
        指定者:
        fatal 在接口中 org.apache.commons.logging.Log
      • fatal

        public void fatal​(Object message,
                          Throwable t)
        指定者:
        fatal 在接口中 org.apache.commons.logging.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​(org.apache.commons.logging.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​(org.apache.commons.logging.Log destination)
        Replay deferred logging to the specified destination.
        参数:
        destination - the destination for the deferred log messages
      • replay

        public static org.apache.commons.logging.Log replay​(org.apache.commons.logging.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 org.apache.commons.logging.Log replay​(org.apache.commons.logging.Log source,
                                                            org.apache.commons.logging.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