@@ -0,0 +1,2636 @@
+package com.edus.apollo.common.utils.log;%0A%0Aimport android.util.Log;%0A%0A/**%0A * Created by PandaPan on 2016/12/25.%0A */%0A%0Apublic class LogUtils %7B%0A    /**%0A     * Priority constant for the println method; use Log.v.%0A     */%0A    public static final int VERBOSE = 2;%0A%0A    /**%0A     * Priority constant for the println method; use Log.d.%0A     */%0A    public static final int DEBUG = 3;%0A%0A    /**%0A     * Priority constant for the println method; use Log.i.%0A     */%0A    public static final int INFO = 4;%0A%0A    /**%0A     * Priority constant for the println method; use Log.w.%0A     */%0A    public static final int WARN = 5;%0A%0A    /**%0A     * Priority constant for the println method; use Log.e.%0A     */%0A    public static final int ERROR = 6;%0A%0A    /**%0A     * Priority constant for the println method.%0A     */%0A    public static final int ASSERT = 7;%0A%0A    private static final boolean logVisible = true;%0A%0A    private static final int visibleMinLevel = DEBUG;%0A%0A    private static boolean isLogable(int level)%7B%0A        return logVisible && level %3E= visibleMinLevel;%0A    %7D%0A%0A    public static void v(String tag, String msg) %7B%0A        if(isLogable(VERBOSE))%7B%0A            Log.v(tag, msg);%0A        %7D%0A    %7D%0A%0A    public static void v(String tag, String msg, Throwable tr)%7B%0A        if(isLogable(VERBOSE))%7B%0A            Log.v(tag, msg, tr);%0A        %7D%0A    %7D%0A%0A    public static void d(String tag, String msg) %7B%0A        if(isLogable(DEBUG))%7B%0A            Log.d(tag, msg);%0A        %7D%0A    %7D%0A%0A    public static void d(String tag, String msg, Throwable tr)%7B%0A        if(isLogable(DEBUG))%7B%0A            Log.d(tag, msg, tr);%0A        %7D%0A    %7D%0A%0A%0A    public static void i(String tag, String msg) %7B%0A        if(isLogable(INFO))%7B%0A            Log.i(tag, msg);%0A        %7D%0A    %7D%0A%0A    public static void i(String tag, String msg, Throwable tr)%7B%0A        if(isLogable(INFO))%7B%0A            Log.i(tag, msg, tr);%0A        %7D%0A    %7D%0A    public static void w(String tag, String msg) %7B%0A        if(isLogable(WARN))%7B%0A            Log.w(tag, msg);%0A        %7D%0A    %7D%0A%0A    public static void w(String tag, String msg, Throwable tr)%7B%0A        if(isLogable(WARN))%7B%0A            Log.w(tag, msg, tr);%0A        %7D%0A    %7D%0A    public static void e(String tag, String msg) %7B%0A        if(isLogable(ERROR))%7B%0A            Log.e(tag, msg);%0A        %7D%0A    %7D%0A%0A    public static void e(String tag, String msg, Throwable tr)%7B%0A        if(isLogable(ERROR))%7B%0A            Log.e(tag, msg, tr);%0A        %7D%0A    %7D%0A%0A%0A    public static void logStackTrack(String tag)%7B%0A        if(isLogable(DEBUG))%7B%0A            for (StackTraceElement i : Thread.currentThread().getStackTrace()) %7B%0A                Log.d(tag, i.toString());%0A            %7D%0A        %7D%0A%0A    %7D%0A%7D%0A

add log utils