Class AbstractLog

java.lang.Object
com.aizuda.snailjob.common.log.dialect.AbstractLog
All Implemented Interfaces:
Log, DebugLog, ErrorLog, InfoLog, TraceLog, WarnLog, Serializable
Direct Known Subclasses:
ConsoleLog, JdkLog, Log4j2Log, Slf4jLog

public abstract class AbstractLog extends Object implements Log, Serializable
抽象日志类
实现了一些通用的接口
Author:
wodeyangzipingpingwuqi
See Also:
  • Constructor Details

    • AbstractLog

      public AbstractLog()
  • Method Details

    • isEnabled

      public boolean isEnabled(Level level)
      Description copied from interface: Log
      是否开启指定日志
      Specified by:
      isEnabled in interface Log
      Parameters:
      level - 日志级别
      Returns:
      是否开启指定级别
    • trace

      public void trace(Boolean remote, Throwable t)
      Description copied from interface: TraceLog
      打印 TRACE 等级的日志
      Specified by:
      trace in interface TraceLog
      t - 错误对象
    • trace

      public void trace(Boolean remote, String msg)
      Description copied from interface: TraceLog
      打印 TRACE 等级的日志
      Specified by:
      trace in interface TraceLog
      msg - 错误对象
    • trace

      public void trace(Boolean remote, String msg, Throwable t)
      Description copied from interface: TraceLog
      打印 TRACE 等级的日志
      Specified by:
      trace in interface TraceLog
      msg - 错误对象
      t - 错误对象
    • trace

      public void trace(Boolean remote, String format, Object... arguments)
      Description copied from interface: TraceLog
      打印 TRACE 等级的日志
      Specified by:
      trace in interface TraceLog
      format - 消息模板
      arguments - 参数
    • debug

      public void debug(Boolean remote, Throwable t)
      Description copied from interface: DebugLog
      打印 DEBUG 等级的日志
      Specified by:
      debug in interface DebugLog
      t - 错误对象
    • debug

      public void debug(Boolean remote, String msg, Throwable t)
      Description copied from interface: DebugLog
      打印 DEBUG 等级的日志
      Specified by:
      debug in interface DebugLog
      msg - 日志信息
      t - 错误对象
    • debug

      public void debug(Boolean remote, String msg)
      Description copied from interface: DebugLog
      打印 DEBUG 等级的日志
      Specified by:
      debug in interface DebugLog
      msg - 日志信息
    • debug

      public void debug(Boolean remote, String format, Object... arguments)
      Description copied from interface: DebugLog
      打印 DEBUG 等级的日志
      Specified by:
      debug in interface DebugLog
      format - 消息模板
      arguments - 参数
    • info

      public void info(Boolean remote, Throwable t)
      Description copied from interface: InfoLog
      打印 INFO 等级的日志
      Specified by:
      info in interface InfoLog
      t - 错误对象
    • info

      public void info(Boolean remote, String msg, Throwable t)
      Description copied from interface: InfoLog
      打印 INFO 等级的日志
      Specified by:
      info in interface InfoLog
      msg - 日志信息
      t - 错误对象
    • info

      public void info(Boolean remote, String msg)
      Description copied from interface: InfoLog
      打印 INFO 等级的日志
      Specified by:
      info in interface InfoLog
      msg - 日志信息
    • info

      public void info(Boolean remote, String format, Object... arguments)
      Description copied from interface: InfoLog
      打印 INFO 等级的日志
      Specified by:
      info in interface InfoLog
      format - 消息模板
      arguments - 参数
    • warn

      public void warn(Boolean remote, String format, Object... arguments)
      Description copied from interface: WarnLog
      打印 WARN 等级的日志
      Specified by:
      warn in interface WarnLog
      format - 消息模板
      arguments - 参数
    • error

      public void error(Boolean remote, String msg, Throwable t)
      Description copied from interface: ErrorLog
      打印 ERROR 等级的日志
      Specified by:
      error in interface ErrorLog
      msg - 消息模板
      t - 错误对象
    • error

      public void error(Boolean remote, String msg)
      Description copied from interface: ErrorLog
      打印 ERROR 等级的日志
      Specified by:
      error in interface ErrorLog
      msg - 消息模板
    • error

      public void error(Boolean remote, Throwable t)
      Description copied from interface: ErrorLog
      打印 ERROR 等级的日志
      Specified by:
      error in interface ErrorLog
      t - 错误对象
    • error

      public void error(Boolean remote, String format, Object... arguments)
      Description copied from interface: ErrorLog
      打印 ERROR 等级的日志
      Specified by:
      error in interface ErrorLog
      format - 消息模板
      arguments - 参数
    • warn

      public void warn(Boolean remote, String msg, Throwable t)
      Description copied from interface: WarnLog
      打印 WARN 等级的日志
      Specified by:
      warn in interface WarnLog
      msg - 消息模板
      t - 错误对象
    • warn

      public void warn(Boolean remote, String msg)
      Description copied from interface: WarnLog
      打印 WARN 等级的日志
      Specified by:
      warn in interface WarnLog
      msg - 消息模板
    • warn

      public void warn(Boolean remote, Throwable t)
      Description copied from interface: WarnLog
      打印 WARN 等级的日志
      Specified by:
      warn in interface WarnLog
      t - 错误对象
    • log

      public void log(Level level, Boolean remote, String format, Object... arguments)
      Description copied from interface: Log
      打印指定级别的日志
      Specified by:
      log in interface Log
      Parameters:
      level - 级别
      format - 消息模板
      arguments - 参数