类 LogUtils


  • public class LogUtils
    extends Object
    • 字段详细资料

      • PRINTLN

        public static final int PRINTLN
        Priority constant for the println method;use System.out.println
        另请参阅:
        常量字段值
      • VERBOSE

        public static final int VERBOSE
        Priority constant for the println method; use Log.v.
        另请参阅:
        常量字段值
      • DEBUG

        public static final int DEBUG
        Priority constant for the println method; use Log.d.
        另请参阅:
        常量字段值
      • INFO

        public static final int INFO
        Priority constant for the println method; use Log.i.
        另请参阅:
        常量字段值
      • WARN

        public static final int WARN
        Priority constant for the println method; use Log.w.
        另请参阅:
        常量字段值
      • ERROR

        public static final int ERROR
        Priority constant for the println method; use Log.e.
        另请参阅:
        常量字段值
      • ASSERT

        public static final int ASSERT
        Priority constant for the println method.use Log.wtf.
        另请参阅:
        常量字段值
    • 方法详细资料

      • setShowLog

        public static void setShowLog​(boolean isShowLog)
      • isShowLog

        public static boolean isShowLog()
      • getPriority

        public static int getPriority()
      • setPriority

        public static void setPriority​(int priority)
      • getStackTraceElement

        public static StackTraceElement getStackTraceElement​(int n)
        获取堆栈
        参数:
        n - n=0 VMStack n=1 Thread n=3 CurrentStack n=4 CallerStack ...
        返回:
      • v

        public static void v​(String msg)
        Log.v
        参数:
        msg -
      • d

        public static void d​(String msg)
        Log.d
        参数:
        msg -
      • i

        public static void i​(String msg)
        Log.i
        参数:
        msg -
      • w

        public static void w​(String msg)
        Log.w
        参数:
        msg -
      • e

        public static void e​(String msg)
        Log.e
        参数:
        msg -
      • wtf

        public static void wtf​(String msg)
        Log.wtf
        参数:
        msg -
      • wtf

        public static void wtf​(Throwable t)
      • print

        public static void print​(String msg)
        System.out.print
        参数:
        msg -
      • print

        public static void print​(Object obj)
      • printf

        public static void printf​(String msg)
        System.out.printf
        参数:
        msg -
      • println

        public static void println​(String msg)
        System.out.println
        参数:
        msg -
      • println

        public static void println​(Object obj)