Back to project page slf4j-android-logger.
The source code is released under:
MIT License
If you think the Android project slf4j-android-logger 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 com.pitty.android.logger; /*from w w w.j ava2 s . com*/ import android.util.Log; /** * Created by Pitty on 14/10/20. */ public enum LEVEL { O, //OFF A, // Assert E, // Error W, // Warn I, // Info D, // Debug V // Verbose ; public int toLog() { switch (this) { case A: return Log.ASSERT; case E: return Log.ERROR; case W: return Log.WARN; case I: return Log.INFO; case D: return Log.DEBUG; case V: return Log.VERBOSE; default: return 0; } } }