Class LogJdk

  • All Implemented Interfaces:
    Log

    public class LogJdk
    extends java.lang.Object
    implements Log
    JDK实现
    Author:
    WD
    • Constructor Summary

      Constructors 
      Constructor Description
      LogJdk()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String msg, java.lang.Object... params)
      使用debug打印日志
      void debug​(java.lang.Throwable t)
      使用debug打印日志
      void error​(java.lang.String msg, java.lang.Object... params)
      使用error打印日志
      void error​(java.lang.String msg, java.lang.Throwable t)
      使用error打印日志
      void error​(java.lang.Throwable t)
      使用debug打印日志
      void error​(java.lang.Throwable t, java.lang.String msg, java.lang.Object... params)
      使用error打印日志
      void info​(java.lang.String msg, java.lang.Object... params)
      使用info打印日志
      void info​(java.lang.Throwable t)
      使用info打印日志
      boolean isDebug()
      是否debug 级别
      boolean isError()
      是否trace 级别
      boolean isInfo()
      是否info 级别
      boolean isTrace()
      是否trace 级别
      boolean isWarn()
      是否warn 级别
      void setClass​(java.lang.Class<?> c)
      设置类
      void trace​(java.lang.String msg, java.lang.Object... params)
      使用trace打印日志
      void trace​(java.lang.Throwable t)
      使用trace打印日志
      void warn​(java.lang.String msg, java.lang.Object... params)
      使用debug打印日志
      void warn​(java.lang.Throwable t)
      使用debug打印日志
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogJdk

        public LogJdk()
    • Method Detail

      • setClass

        public void setClass​(java.lang.Class<?> c)
        Description copied from interface: Log
        设置类
        Specified by:
        setClass in interface Log
      • trace

        public void trace​(java.lang.String msg,
                          java.lang.Object... params)
        Description copied from interface: Log
        使用trace打印日志
        Specified by:
        trace in interface Log
        Parameters:
        msg - 信息 可以是字符串xxx%sxxx
        params - 字符串格式化参数
      • trace

        public void trace​(java.lang.Throwable t)
        Description copied from interface: Log
        使用trace打印日志
        Specified by:
        trace in interface Log
        Parameters:
        t - 异常
      • debug

        public void debug​(java.lang.String msg,
                          java.lang.Object... params)
        Description copied from interface: Log
        使用debug打印日志
        Specified by:
        debug in interface Log
        Parameters:
        msg - 信息 可以是字符串xxx%sxxx
        params - 字符串格式化参数
      • debug

        public void debug​(java.lang.Throwable t)
        Description copied from interface: Log
        使用debug打印日志
        Specified by:
        debug in interface Log
        Parameters:
        t - 异常
      • info

        public void info​(java.lang.String msg,
                         java.lang.Object... params)
        Description copied from interface: Log
        使用info打印日志
        Specified by:
        info in interface Log
        Parameters:
        msg - 信息 可以是字符串xxx%sxxx
        params - 字符串格式化参数
      • info

        public void info​(java.lang.Throwable t)
        Description copied from interface: Log
        使用info打印日志
        Specified by:
        info in interface Log
        Parameters:
        t - 异常
      • warn

        public void warn​(java.lang.String msg,
                         java.lang.Object... params)
        Description copied from interface: Log
        使用debug打印日志
        Specified by:
        warn in interface Log
        Parameters:
        msg - 信息 可以是字符串xxx%sxxx
        params - 字符串格式化参数
      • warn

        public void warn​(java.lang.Throwable t)
        Description copied from interface: Log
        使用debug打印日志
        Specified by:
        warn in interface Log
        Parameters:
        t - 异常
      • error

        public void error​(java.lang.String msg,
                          java.lang.Object... params)
        Description copied from interface: Log
        使用error打印日志
        Specified by:
        error in interface Log
        Parameters:
        msg - 信息 可以是字符串xxx%sxxx
        params - 字符串格式化参数
      • error

        public void error​(java.lang.Throwable t)
        Description copied from interface: Log
        使用debug打印日志
        Specified by:
        error in interface Log
        Parameters:
        t - 异常
      • error

        public void error​(java.lang.String msg,
                          java.lang.Throwable t)
        Description copied from interface: Log
        使用error打印日志
        Specified by:
        error in interface Log
        Parameters:
        msg - 信息
        t - 异常
      • isTrace

        public boolean isTrace()
        Description copied from interface: Log
        是否trace 级别
        Specified by:
        isTrace in interface Log
        Returns:
        true 是 false 否
      • isDebug

        public boolean isDebug()
        Description copied from interface: Log
        是否debug 级别
        Specified by:
        isDebug in interface Log
        Returns:
        true 是 false 否
      • isInfo

        public boolean isInfo()
        Description copied from interface: Log
        是否info 级别
        Specified by:
        isInfo in interface Log
        Returns:
        true 是 false 否
      • isWarn

        public boolean isWarn()
        Description copied from interface: Log
        是否warn 级别
        Specified by:
        isWarn in interface Log
        Returns:
        true 是 false 否
      • isError

        public boolean isError()
        Description copied from interface: Log
        是否trace 级别
        Specified by:
        isError in interface Log
        Returns:
        true 是 false 否
      • error

        public void error​(java.lang.Throwable t,
                          java.lang.String msg,
                          java.lang.Object... params)
        Description copied from interface: Log
        使用error打印日志
        Specified by:
        error in interface Log
        Parameters:
        t - 异常
        msg - 信息 可以是字符串xxx%sxxx
        params - 字符串格式化参数