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-22 20:20:33 +02:00
|
|
|
<pattern>%msg</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>
|
2015-05-23 00:45:12 +02:00
|
|
|
|
2015-05-13 23:15:20 +02:00
|
|
|
<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">
|
2016-03-07 01:09:20 +01:00
|
|
|
<fileNamePattern>${GB_LOGFILES_DIR}/gadgetbridge-%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
|
2015-05-17 23:37:28 +02:00
|
|
|
<maxHistory>10</maxHistory>
|
2016-03-07 01:09:20 +01:00
|
|
|
<timeBasedFileNamingAndTriggeringPolicy
|
|
|
|
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
|
<!-- or whenever the file size reaches 50MB -->
|
|
|
|
<maxFileSize>2MB</maxFileSize>
|
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
2015-05-17 23:37:28 +02:00
|
|
|
</rollingPolicy>
|
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>
|
2016-03-07 22:46:35 +01:00
|
|
|
<!-- to debug crashes, set immediateFlush to true, otherwise keep it false to improve throughput -->
|
|
|
|
<immediateFlush>false</immediateFlush>
|
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>
|
2015-06-12 22:30:14 +02:00
|
|
|
</configuration>
|