Log4J for android

guide :http://tony19.github.com/logback-android/ html

pattern for print exception android

http://logback.qos.ch/manual/layouts.html#nopex git

add logback.xml in /assets/ github


        <configuration>
            <appender
                name="LOGCAT"
                class="ch.qos.logback.classic.android.LogcatAppender" >
                <tagEncoder>
                    <pattern>%logger{0}%nopex</pattern>
                </tagEncoder>
                <encoder>
                    <pattern>%msg%n</pattern>
                </encoder>
            </appender> app

            <root level="ERROR" >
                <appender-ref ref="LOGCAT" />
            </root>
        </configuration> ide

相關文章
相關標籤/搜索