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;
/*fromwww.java2s.com*/import java.util.List;
publicclass AppenderSupportLogger extends AbstractLogger {
public AppenderSupportLogger(final String name, final LogLevel level, final String tag, finalboolean showThreadName){
super(name, level, tag, showThreadName);
}
@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);
final List<Appender> appenders = LoggerFactory.getRepository().getAppenders();
TextViewAppender.cacheEvent(event);
for (final Appender appender: appenders) {
appender.append(event);
}
}
}
}