Package 

Interface ILogger


  • 
    public interface ILogger
    
                        

    日志记录器的基本定义

    Basic definition of a logger.

    • Method Summary

      Modifier and Type Method Description
      abstract ILogger format(LogFormat logFormat) 为下次日志调用设置一次性日志显示格式Set a one-time log display format for use on the next logging call.
      abstract ILogger offset(Integer methodOffset) 为下次日志调用设置一次性方法跟踪偏移量Set a one-time method trace offset for use on the next logging call.
      abstract ILogger tag(String tag) 为下次日志调用设置一次性标签Set a one-time tag for use on the next logging call.
      abstract Unit v(String message, Object args) 记录详细级别日志消息(可包含格式参数)Log a verbose message with optional format args.
      abstract Unit v(Throwable t, String message, Object args) 记录详细级别异常和消息(可包含格式参数)Log a verbose exception and a message with optional format args.
      abstract Unit v(Throwable t) 记录详细级别异常Log a verbose exception.
      abstract Unit d(String message, Object args) 记录调试级别日志消息(可包含格式参数)Log a debug message with optional format args.
      abstract Unit d(Throwable t, String message, Object args) 记录调试级别异常和消息(可包含格式参数)Log a debug exception and a message with optional format args.
      abstract Unit d(Throwable t) 记录调试级别异常Log a debug exception.
      abstract Unit i(String message, Object args) 记录信息级别日志消息(可包含格式参数)Log an info message with optional format args.
      abstract Unit i(Throwable t, String message, Object args) 记录信息级别异常和消息(可包含格式参数)Log an info exception and a message with optional format args.
      abstract Unit i(Throwable t) 记录信息级别异常Log an info exception.
      abstract Unit w(String message, Object args) 记录警告级别日志消息(可包含格式参数)Log a warning message with optional format args.
      abstract Unit w(Throwable t, String message, Object args) 记录警告级别异常和消息(可包含格式参数)Log a warning exception and a message with optional format args.
      abstract Unit w(Throwable t) 记录警告级别异常Log a warning exception.
      abstract Unit e(String message, Object args) 记录错误级别日志消息(可包含格式参数)Log an error message with optional format args.
      abstract Unit e(Throwable t, String message, Object args) 记录错误级别异常和消息(可包含格式参数)Log an error exception and a message with optional format args.
      abstract Unit e(Throwable t) 记录错误级别异常Log an error exception.
      abstract Unit wtf(String message, Object args) 记录断言级别日志消息(可包含格式参数)Log an assert message with optional format args.
      abstract Unit wtf(Throwable t, String message, Object args) 记录断言级别异常和消息(可包含格式参数)Log an assert exception and a message with optional format args.
      abstract Unit wtf(Throwable t) 记录断言级别异常Log an assert exception.
      abstract Unit log(Integer priority, String message) 按指定优先级记录日志消息Log at priority a message.
      abstract Unit log(Integer priority, Throwable t, String message) 按指定优先级记录异常和消息Log at priority an exception and a message.
      abstract Unit log(Integer priority, Throwable t) 按指定优先级记录异常Log at priority an exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • format

         abstract ILogger format(LogFormat logFormat)

        为下次日志调用设置一次性日志显示格式

        Set a one-time log display format for use on the next logging call.

      • offset

         abstract ILogger offset(Integer methodOffset)

        为下次日志调用设置一次性方法跟踪偏移量

        Set a one-time method trace offset for use on the next logging call.

      • tag

         abstract ILogger tag(String tag)

        为下次日志调用设置一次性标签

        Set a one-time tag for use on the next logging call.

      • v

         abstract Unit v(String message, Object args)

        记录详细级别日志消息(可包含格式参数)

        Log a verbose message with optional format args.

      • v

         abstract Unit v(Throwable t, String message, Object args)

        记录详细级别异常和消息(可包含格式参数)

        Log a verbose exception and a message with optional format args.

      • v

         abstract Unit v(Throwable t)

        记录详细级别异常

        Log a verbose exception.

      • d

         abstract Unit d(String message, Object args)

        记录调试级别日志消息(可包含格式参数)

        Log a debug message with optional format args.

      • d

         abstract Unit d(Throwable t, String message, Object args)

        记录调试级别异常和消息(可包含格式参数)

        Log a debug exception and a message with optional format args.

      • d

         abstract Unit d(Throwable t)

        记录调试级别异常

        Log a debug exception.

      • i

         abstract Unit i(String message, Object args)

        记录信息级别日志消息(可包含格式参数)

        Log an info message with optional format args.

      • i

         abstract Unit i(Throwable t, String message, Object args)

        记录信息级别异常和消息(可包含格式参数)

        Log an info exception and a message with optional format args.

      • i

         abstract Unit i(Throwable t)

        记录信息级别异常

        Log an info exception.

      • w

         abstract Unit w(String message, Object args)

        记录警告级别日志消息(可包含格式参数)

        Log a warning message with optional format args.

      • w

         abstract Unit w(Throwable t, String message, Object args)

        记录警告级别异常和消息(可包含格式参数)

        Log a warning exception and a message with optional format args.

      • w

         abstract Unit w(Throwable t)

        记录警告级别异常

        Log a warning exception.

      • e

         abstract Unit e(String message, Object args)

        记录错误级别日志消息(可包含格式参数)

        Log an error message with optional format args.

      • e

         abstract Unit e(Throwable t, String message, Object args)

        记录错误级别异常和消息(可包含格式参数)

        Log an error exception and a message with optional format args.

      • e

         abstract Unit e(Throwable t)

        记录错误级别异常

        Log an error exception.

      • wtf

         abstract Unit wtf(String message, Object args)

        记录断言级别日志消息(可包含格式参数)

        Log an assert message with optional format args.

      • wtf

         abstract Unit wtf(Throwable t, String message, Object args)

        记录断言级别异常和消息(可包含格式参数)

        Log an assert exception and a message with optional format args.

      • wtf

         abstract Unit wtf(Throwable t)

        记录断言级别异常

        Log an assert exception.

      • log

         abstract Unit log(Integer priority, String message)

        按指定优先级记录日志消息

        Log at priority a message.

      • log

         abstract Unit log(Integer priority, Throwable t, String message)

        按指定优先级记录异常和消息

        Log at priority an exception and a message.

      • log

         abstract Unit log(Integer priority, Throwable t)

        按指定优先级记录异常

        Log at priority an exception.