类 SaLogForConsole

java.lang.Object
cn.dev33.satoken.log.SaLogForConsole
所有已实现的接口:
SaLog

public class SaLogForConsole extends Object implements SaLog
Sa-Token 日志实现类 [ 控制台打印 ]
从以下版本开始:
1.33.0
作者:
click33
  • 字段详细资料

    • trace

      public static final int trace
      日志等级
      另请参阅:
    • debug

      public static final int debug
      另请参阅:
    • info

      public static final int info
      另请参阅:
    • warn

      public static final int warn
      另请参阅:
    • error

      public static final int error
      另请参阅:
    • fatal

      public static final int fatal
      另请参阅:
    • LOG_PREFIX

      public static String LOG_PREFIX
      日志输出的前缀
    • TRACE_PREFIX

      public static String TRACE_PREFIX
    • DEBUG_PREFIX

      public static String DEBUG_PREFIX
    • INFO_PREFIX

      public static String INFO_PREFIX
    • WARN_PREFIX

      public static String WARN_PREFIX
    • ERROR_PREFIX

      public static String ERROR_PREFIX
    • FATAL_PREFIX

      public static String FATAL_PREFIX
    • TRACE_COLOR

      public static String TRACE_COLOR
      日志输出的颜色
    • DEBUG_COLOR

      public static String DEBUG_COLOR
    • INFO_COLOR

      public static String INFO_COLOR
    • WARN_COLOR

      public static String WARN_COLOR
    • ERROR_COLOR

      public static String ERROR_COLOR
    • FATAL_COLOR

      public static String FATAL_COLOR
    • DEFAULT_COLOR

      public static String DEFAULT_COLOR
  • 构造器详细资料

    • SaLogForConsole

      public SaLogForConsole()
  • 方法详细资料

    • trace

      public void trace(String str, Object... args)
      从接口复制的说明: SaLog
      输出 trace 日志
      指定者:
      trace 在接口中 SaLog
      参数:
      str - 日志内容
      args - 参数列表
    • debug

      public void debug(String str, Object... args)
      从接口复制的说明: SaLog
      输出 debug 日志
      指定者:
      debug 在接口中 SaLog
      参数:
      str - 日志内容
      args - 参数列表
    • info

      public void info(String str, Object... args)
      从接口复制的说明: SaLog
      输出 info 日志
      指定者:
      info 在接口中 SaLog
      参数:
      str - 日志内容
      args - 参数列表
    • warn

      public void warn(String str, Object... args)
      从接口复制的说明: SaLog
      输出 warn 日志
      指定者:
      warn 在接口中 SaLog
      参数:
      str - 日志内容
      args - 参数列表
    • error

      public void error(String str, Object... args)
      从接口复制的说明: SaLog
      输出 error 日志
      指定者:
      error 在接口中 SaLog
      参数:
      str - 日志内容
      args - 参数列表
    • fatal

      public void fatal(String str, Object... args)
      从接口复制的说明: SaLog
      输出 fatal 日志
      指定者:
      fatal 在接口中 SaLog
      参数:
      str - 日志内容
      args - 参数列表
    • println

      public void println(int level, String color, String prefix, String str, Object... args)
      打印日志到控制台
      参数:
      level - 日志等级
      color - 颜色编码
      prefix - 前缀
      str - 字符串
      args - 参数列表