保存进度!

This commit is contained in:
Kane Wang 2023-07-24 00:13:19 +08:00
parent 5344f2e0ea
commit 6d4ca8cf96
1 changed files with 5 additions and 4 deletions

View File

@ -4,18 +4,19 @@
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} ### %msg%n" />
<ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
</Console>
<RollingFile name="rolling_file" filename="./logs/app.log"
filePattern="./logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
<RollingFile name="rolling_file" filename="./logs/桌面霸屏/app.log"
filePattern="./logs/桌面霸屏/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
<PatternLayout pattern="%d{yyyy-MM-dd 'at' HH:mm:ss z} %-5level %class{36} %L %M - %msg%xEx%n"/>
<SizeBasedTriggeringPolicy size="50MB" />
<DefaultRolloverStrategy max="20" />
</RollingFile>
</Appenders>
<Loggers>
<Logger name="mylog" level="info" additivity="false">
<!-- <Logger name="mylog" level="info" additivity="false">
<AppenderRef ref="rolling_file" />
</Logger>
</Logger> -->
<Root level="debug">
<AppenderRef ref="rolling_file" />
<AppenderRef ref="Console" />
</Root>
</Loggers>