LogUtils日志管理工具
Posted yl007
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LogUtils日志管理工具相关的知识,希望对你有一定的参考价值。
public class LogUtils { public static final int VERBOSE = 1; public static final int DEBUG = 2; public static final int INFO = 3; public static final int WARN = 4; public static final int ERROR = 5; public static final int NOTHING = 6; public static final int level = VERBOSE; public static void v(String tag,String msg){ if(level <= VERBOSE){ Log.v(tag,msg); } } public static void v(String tag,String msg){ if(level <= DEBUG){ Log.d(tag,msg); } } public static void v(String tag,String msg){ if(level <= INFO){ Log.i(tag,msg); } } public static void v(String tag,String msg){ if(level <= WARN){ Log.w(tag,msg); } } public static void v(String tag,String msg){ if(level <= ERROR){ Log.e(tag,msg); } }
以上是关于LogUtils日志管理工具的主要内容,如果未能解决你的问题,请参考以下文章