类 LogUtils

java.lang.Object
com.cdkjframework.util.log.LogUtils

@Component public class LogUtils extends Object
  • 构造器详细资料

    • LogUtils

      public LogUtils()
      构造函数
  • 方法详细资料

    • getLogger

      public static LogUtils getLogger(Class clazz)
      getLogger
      参数:
      clazz - 类
    • getLogger

      public static LogUtils getLogger(String name)
      getLogger
      参数:
      name - 类
    • debug

      public void debug(String format, Object... arguments)
      调试输出日志
      参数:
      format - 格式
      arguments - 内容
    • debug

      public void debug(String message)
      调试输出日志
      参数:
      message - 错误信息
    • debug

      public void debug(Throwable throwable, String message)
      调试输出日志
      参数:
      throwable - 错误信息
      message - 错误信息
    • info

      public void info(String format, Object... arguments)
      日志信息输出
      参数:
      format - 格式
      arguments - 内容
    • info

      public void info(String msg)
      信息输出日志
      参数:
      msg - 错误信息
    • info

      public void info(Throwable throwable, String msg)
      信息输出日志
      参数:
      throwable - 错误信息
      msg - 错误信息
    • warn

      public void warn(String msg)
      警告日志
      参数:
      msg - 日志信息
    • warn

      public void warn(Throwable throwable, String msg)
      警告日志
      参数:
      throwable - 错误信息
      msg - 日志信息
    • error

      public void error(String format, Object... arguments)
      错误输出日志
      参数:
      format - 格式
      arguments - 内容
    • error

      public void error(String msg)
      错误输出日志
      参数:
      msg - 错误信息
    • error

      public void error(Throwable throwable, String msg)
      错误输出日志
      参数:
      throwable - 错误信息
      msg - 错误信息
    • error

      public void error(StackTraceElement[] stackTraceElements, String msg)
      错误输出日志
      参数:
      stackTraceElements - 错误信息
      msg - 错误信息
    • error

      public void error(Exception ex)
      错误输出日志
      参数:
      ex - 错误信息