类 AbstractLogger

    • 构造器概要

      构造器 
      限定符 构造器 说明
      protected AbstractLogger​(java.lang.String name)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void debug​(java.lang.String format, java.lang.Object... arguments)
      Log a message at the DEBUG level according to the specified format and arguments.
      void error​(java.lang.String format, java.lang.Object... arguments)
      Log a message at the ERROR level according to the specified format and arguments.
      java.lang.String getName()
      Return the name of this Logger instance.
      void info​(java.lang.String format, java.lang.Object... arguments)
      Log a message at the INFO level according to the specified format and arguments.
      protected void log​(java.util.function.Consumer<java.lang.String> messageHandler, java.util.function.BiConsumer<java.lang.String,​java.lang.Throwable> messageThrowableHandler, java.lang.String format, java.lang.Object... arguments)  
      protected java.lang.String resolveMessage​(java.lang.String format, java.lang.Object... arguments)
      Resolve the format message
      void trace​(java.lang.String format, java.lang.Object... arguments)
      Log a message at the TRACE level according to the specified format and arguments.
      void warn​(java.lang.String format, java.lang.Object... arguments)
      Log a message at the WARN level according to the specified format and arguments.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • AbstractLogger

        protected AbstractLogger​(java.lang.String name)
    • 方法详细资料

      • getName

        public final java.lang.String getName()
        从接口复制的说明: Logger
        Return the name of this Logger instance.
        指定者:
        getName 在接口中 Logger
        返回:
        name of this logger instance
      • trace

        public void trace​(java.lang.String format,
                          java.lang.Object... arguments)
        从接口复制的说明: Logger
        Log a message at the TRACE level according to the specified format and arguments.

        This form avoids superfluous string concatenation when the logger is disabled for the TRACE level. However, this variant incurs the hidden (and relatively small) cost of creating an Object[] before invoking the method, even if this logger is disabled for TRACE.

        指定者:
        trace 在接口中 Logger
        参数:
        format - the format string
        arguments - the arguments
      • debug

        public void debug​(java.lang.String format,
                          java.lang.Object... arguments)
        从接口复制的说明: Logger
        Log a message at the DEBUG level according to the specified format and arguments.
        指定者:
        debug 在接口中 Logger
        参数:
        format - the format string
        arguments - the arguments
      • info

        public void info​(java.lang.String format,
                         java.lang.Object... arguments)
        从接口复制的说明: Logger
        Log a message at the INFO level according to the specified format and arguments.
        指定者:
        info 在接口中 Logger
        参数:
        format - the format string
        arguments - the arguments
      • warn

        public void warn​(java.lang.String format,
                         java.lang.Object... arguments)
        从接口复制的说明: Logger
        Log a message at the WARN level according to the specified format and arguments.
        指定者:
        warn 在接口中 Logger
        参数:
        format - the format string
        arguments - the arguments
      • error

        public void error​(java.lang.String format,
                          java.lang.Object... arguments)
        从接口复制的说明: Logger
        Log a message at the ERROR level according to the specified format and arguments.
        指定者:
        error 在接口中 Logger
        参数:
        format - the format string
        arguments - the arguments
      • log

        protected void log​(java.util.function.Consumer<java.lang.String> messageHandler,
                           java.util.function.BiConsumer<java.lang.String,​java.lang.Throwable> messageThrowableHandler,
                           java.lang.String format,
                           java.lang.Object... arguments)
        参数:
        messageHandler - only message to log
        messageThrowableHandler - message and Throwable to log
        format - the format message or regular message
        arguments - zero or more arguments for the format pattern
      • resolveMessage

        protected java.lang.String resolveMessage​(java.lang.String format,
                                                  java.lang.Object... arguments)
        Resolve the format message
        参数:
        format - the format message
        arguments - zero or more arguments for the format pattern
        返回:
        non-null