Back to project page AGOGCyberStat.
The source code is released under:
MIT License
If you think the Android project AGOGCyberStat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.allenz.androidapplog; /*from www .j a v a 2 s .c o m*/ import android.util.Log; public enum LogLevel { VERBOSE(Log.VERBOSE), DEBUG(Log.DEBUG), INFO(Log.INFO), WARN(Log.WARN), ERROR(Log.ERROR), ASSERT(Log.ASSERT), OFF(Integer.MAX_VALUE); private final int intVal; private LogLevel(final int intVal){ this.intVal = intVal; } public int intValue() { return intVal; } public boolean includes(final LogLevel level) { return level != null && this.intValue() <= level.intValue(); } }