接口 Logger

所有已知实现类:
JavaLoggingAdapter

public interface Logger

The universal logger SPI interface.

Notice: the placeholder only supports the most popular placeholder convention (slf4j). So, if you're not using slf4j, you should create adapters compatible with placeholders "{}".

从以下版本开始:
1.7.2
作者:
xue8
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    debug(String format, Object... arguments)
    Log a message at the DEBUG level according to the specified format and arguments.
    void
    Log an exception (throwable) at the DEBUG level with an accompanying message.
    void
    error(String format, Object... arguments)
    Log a message at the ERROR level according to the specified format and arguments.
    void
    Log an exception (throwable) at the ERROR level with an accompanying message.
    void
    info(String format, Object... arguments)
    Log a message at the INFO level according to the specified format and arguments.
    void
    Log an exception (throwable) at the INFO level with an accompanying message.
    void
    trace(String format, Object... arguments)
    Log a message at the TRACE level according to the specified format and arguments.
    void
    Log an exception (throwable) at the TRACE level with an accompanying message.
    void
    warn(String format, Object... arguments)
    Log a message at the WARN level according to the specified format and arguments.
    void
    Log an exception (throwable) at the WARN level with an accompanying message.
  • 方法详细资料

    • info

      void info(String format, Object... arguments)
      Log a message at the INFO level according to the specified format and arguments.
      参数:
      format - the format string
      arguments - a list of arguments
    • info

      void info(String msg, Throwable e)
      Log an exception (throwable) at the INFO level with an accompanying message.
      参数:
      msg - the message accompanying the exception
      e - the exception (throwable) to log
    • warn

      void warn(String format, Object... arguments)
      Log a message at the WARN level according to the specified format and arguments.
      参数:
      format - the format string
      arguments - a list of arguments
    • warn

      void warn(String msg, Throwable e)
      Log an exception (throwable) at the WARN level with an accompanying message.
      参数:
      msg - the message accompanying the exception
      e - the exception (throwable) to log
    • trace

      void trace(String format, Object... arguments)
      Log a message at the TRACE level according to the specified format and arguments.
      参数:
      format - the format string
      arguments - a list of arguments
    • trace

      void trace(String msg, Throwable e)
      Log an exception (throwable) at the TRACE level with an accompanying message.
      参数:
      msg - the message accompanying the exception
      e - the exception (throwable) to log
    • debug

      void debug(String format, Object... arguments)
      Log a message at the DEBUG level according to the specified format and arguments.
      参数:
      format - the format string
      arguments - a list of arguments
    • debug

      void debug(String msg, Throwable e)
      Log an exception (throwable) at the DEBUG level with an accompanying message.
      参数:
      msg - the message accompanying the exception
      e - the exception (throwable) to log
    • error

      void error(String format, Object... arguments)
      Log a message at the ERROR level according to the specified format and arguments.
      参数:
      format - the format string
      arguments - a list of arguments
    • error

      void error(String msg, Throwable e)
      Log an exception (throwable) at the ERROR level with an accompanying message.
      参数:
      msg - the message accompanying the exception
      e - the exception (throwable) to log