2016-06-05 01:40:35 +02:00
|
|
|
<configuration>
|
|
|
|
<!-- Create a file appender for a log in the application's data directory -->
|
2016-06-11 21:20:05 +02:00
|
|
|
<property name="EXT_FILES_DIR" value="${EXT_DIR:-/sdcard}/Android/data/${PACKAGE_NAME}/files"/>
|
2016-06-05 01:40:35 +02:00
|
|
|
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
2016-06-11 21:20:05 +02:00
|
|
|
<file>${EXT_FILES_DIR}/AndroidAPS.log</file>
|
2016-06-05 01:40:35 +02:00
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
|
<!-- daily rollover. Make sure the path matches the one in the file element or else
|
|
|
|
the rollover logs are placed in the working directory. -->
|
2017-08-13 14:32:37 +02:00
|
|
|
<fileNamePattern>${EXT_FILES_DIR}/AndroidAPS._%d{yyyy-MM-dd}_%d{HH-mm-ss, aux}_.%i.zip</fileNamePattern>
|
2016-06-05 01:40:35 +02:00
|
|
|
|
|
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
|
<maxFileSize>5MB</maxFileSize>
|
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
|
|
<!-- keep 30 days' worth of history -->
|
|
|
|
<maxHistory>120</maxHistory>
|
|
|
|
</rollingPolicy>
|
|
|
|
<encoder>
|
2017-07-24 15:17:06 +02:00
|
|
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level [%file:%line]: %msg%n</pattern>
|
2016-06-05 01:40:35 +02:00
|
|
|
</encoder>
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
<appender name="logcat" class="ch.qos.logback.classic.android.LogcatAppender">
|
|
|
|
<tagEncoder>
|
|
|
|
<pattern>%logger{0}</pattern>
|
|
|
|
</tagEncoder>
|
|
|
|
<encoder>
|
2017-07-24 15:17:06 +02:00
|
|
|
<pattern>[%thread] %-5level [%file:%line]: %msg%n</pattern>
|
2016-06-05 01:40:35 +02:00
|
|
|
</encoder>
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
<!-- Write INFO (and higher-level) messages to the log file -->
|
|
|
|
<root level="DEBUG">
|
|
|
|
<appender-ref ref="file" />
|
|
|
|
<appender-ref ref="logcat" />
|
|
|
|
</root>
|
2016-06-11 21:20:05 +02:00
|
|
|
</configuration>
|