mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 10:31:03 +01:00
ac7e21be48
This partially reverts commit 8b268a676c
35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<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>
|
|
<pattern>%msg</pattern>
|
|
</encoder>
|
|
</appender>
|
|
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>${GB_LOGFILES_DIR}/gadgetbridge.log</file>
|
|
|
|
<lazy>true</lazy>
|
|
<!-- encoders are by default assigned the type
|
|
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>${GB_LOGFILES_DIR}/gadgetbridge-%d{yyyy-MM-dd}.log.zip</fileNamePattern>
|
|
<maxHistory>10</maxHistory>
|
|
</rollingPolicy>
|
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
|
<maxFileSize>5MB</maxFileSize>
|
|
</triggeringPolicy>
|
|
<encoder>
|
|
<!--<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>-->
|
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1} - %msg%n</pattern>
|
|
<!--<pattern>%date [%thread] %-5level %logger{25} - %msg%n</pattern>-->
|
|
</encoder>
|
|
</appender>
|
|
|
|
<root level="DEBUG">
|
|
<appender-ref ref="STDOUT" />
|
|
<appender-ref ref="FILE" />
|
|
</root>
|
|
</configuration> |