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.
Java Source Code
package me.allenz.androidapplog;
//www.java2s.comimport android.util.Log;
publicclass InternalLogger extends AbstractLogger {
privatestaticfinal LogLevel DEFAULT_INTERNAL_LOG_LEVEL = LogLevel.VERBOSE;
privatestaticfinal String TAG = "aal";
public InternalLogger(){
super(TAG, DEFAULT_INTERNAL_LOG_LEVEL, TAG, false);
}
@Override
protectedvoid println(final LogLevel level, final Throwable t, final String format, final Object... args) {
if (this.level.includes(level) &&
(t != null || format != null)) {
final LogEvent event = buidLogEvent(level, t, format, args);
Log.println(event.getLevel().intValue(), event.getTag(), event.getMessage());
}
}
}