类 SaLogForConsole

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

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

    • LOG_PREFIX

      public static String LOG_PREFIX
      日志输出的前缀
    • 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
      另请参阅:
  • 构造器详细资料

    • 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 str, Object... args)
      打印日志到控制台
      参数:
      level - 日志等级
      str - 字符串
      args - 参数列表