2015-05-13 23:15:20 +02:00
|
|
|
<configuration debug="true">
|
|
|
|
|
|
|
|
<appender name="STDOUT" class="ch.qos.logback.classic.android.LogcatAppender">
|
|
|
|
<!-- encoders are by default assigned the type
|
|
|
|
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
|
|
|
|
<encoder>
|
2015-05-17 23:37:28 +02:00
|
|
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1} - %msg%n</pattern>
|
2015-05-13 23:15:20 +02:00
|
|
|
</encoder>
|
|
|
|
</appender>
|
|
|
|
|
2015-05-17 23:37:28 +02:00
|
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
2015-05-13 23:15:20 +02:00
|
|
|
<file>${GB_LOGFILES_DIR}/gadgetbridge.log</file>
|
|
|
|
<lazy>true</lazy>
|
|
|
|
<!-- encoders are by default assigned the type
|
|
|
|
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
|
2015-05-17 23:37:28 +02:00
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
|
<fileNamePattern>gadgetbridge-%d{yyyy-MM-dd}.log.zip</fileNamePattern>
|
|
|
|
<maxHistory>10</maxHistory>
|
|
|
|
</rollingPolicy>
|
|
|
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
|
|
|
<maxFileSize>5MB</maxFileSize>
|
|
|
|
</triggeringPolicy>
|
2015-05-13 23:15:20 +02:00
|
|
|
<encoder>
|
|
|
|
<!--<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>-->
|
2015-05-17 23:37:28 +02:00
|
|
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1} - %msg%n</pattern>
|
2015-05-13 23:15:20 +02:00
|
|
|
<!--<pattern>%date [%thread] %-5level %logger{25} - %msg%n</pattern>-->
|
|
|
|
</encoder>
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
<root level="DEBUG">
|
|
|
|
<appender-ref ref="STDOUT" />
|
|
|
|
<appender-ref ref="FILE" />
|
|
|
|
</root>
|
|
|
|
</configuration>
|