Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Commit

Permalink
log level increased to TRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanson committed Mar 15, 2015
1 parent 0789e7b commit 2ec9b14
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion app/src/main/assets/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,25 @@
</rollingPolicy>
</appender>

<appender name="FILE_TRACE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>TRACE</level>
</filter>

<file>${LOG_DIR}/${LOG_FILE}.trace.txt</file>

<encoder>
<pattern>%date{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>

<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover period -->
<fileNamePattern>${LOG_DIR}/${LOG_FILE}.%d.trace.txt</fileNamePattern>
<!-- keep 7 days' worth of history -->
<maxHistory>7</maxHistory>
</rollingPolicy>
</appender>

<!-- additivity="false" ensures these messages are not also logged in root -->
<logger name="data" additivity="false" >
<!--appender-ref ref="LOGCAT" /-->
Expand All @@ -56,6 +75,6 @@

<root level="TRACE" >
<appender-ref ref="LOGCAT" />
<appender-ref ref="FILE_DEBUG" />
<appender-ref ref="FILE_TRACE" />
</root>
</configuration>

0 comments on commit 2ec9b14

Please sign in to comment.