Android Open Source - AGOGCyberStat Appender Support Logger






From Project

Back to project page AGOGCyberStat.

License

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.

Java Source Code

package me.allenz.androidapplog;
/*from   ww w .  j  a  va  2s. c om*/
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();
            TextViewAppender.cacheEvent(event);
            for (final Appender appender: appenders) {
                appender.append(event);
            }
        }
    }

}




Java Source Code List

com.agog.cyberstat.BrR.java
com.agog.cyberstat.JSONSettings.java
com.agog.cyberstat.MainActivity.java
com.agog.cyberstat.MotisonNetTask.java
com.agog.cyberstat.MotisonXML.java
com.agog.cyberstat.MyPrefs.java
com.agog.cyberstat.NetR.java
com.agog.cyberstat.Trigger.java
me.allenz.androidapplog.AbstractAppender.java
me.allenz.androidapplog.AbstractLogger.java
me.allenz.androidapplog.AppenderSupportLogger.java
me.allenz.androidapplog.Appender.java
me.allenz.androidapplog.AsyncAppender.java
me.allenz.androidapplog.Configure.java
me.allenz.androidapplog.InternalLogger.java
me.allenz.androidapplog.LogCatAppender.java
me.allenz.androidapplog.LogEvent.java
me.allenz.androidapplog.LogLevel.java
me.allenz.androidapplog.LogTextView.java
me.allenz.androidapplog.LoggerConfig.java
me.allenz.androidapplog.LoggerFactory.java
me.allenz.androidapplog.Logger.java
me.allenz.androidapplog.PropertiesParser.java
me.allenz.androidapplog.ReflectUtils.java
me.allenz.androidapplog.Repository.java
me.allenz.androidapplog.RollingFileAppender.java
me.allenz.androidapplog.TextViewAppender.java