Back to project page AndroidAppLog.
The source code is released under:
Apache License
If you think the Android project AndroidAppLog 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; // www. j ava2 s . c o m import java.util.List; public class AppenderSupportLogger extends AbstractLogger { public AppenderSupportLogger(final String name, final LogLevel level, final String tag, final boolean showThreadName){ super(name, level, tag, showThreadName); } @Override protected void 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(); for (final Appender appender: appenders) { appender.append(event); } } } }