Skip to content

Commit 6824d96

Browse files
committed
Fix logback to actually roll logs
This also fixes the issue where logback was logging to stdout on startup, trying to tell me that the rolling config was invalid.
1 parent d3a7cff commit 6824d96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/logback.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<configuration debug="false">
22

3-
<appender name="EDNL" class="ch.qos.logback.core.FileAppender">
3+
<appender name="EDNL" class="ch.qos.logback.core.rolling.RollingFileAppender">
44
<file>${log.dir:-logs}/clojars.ednl</file>
55
<!-- Handling rotation here instead of via logrotate in the server config to avoid restarting the process -->
66
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
@@ -14,7 +14,7 @@
1414
</encoder>
1515
</appender>
1616

17-
<appender name="LOG" class="ch.qos.logback.core.FileAppender">
17+
<appender name="LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
1818
<file>${log.dir:-logs}/clojars.log</file>
1919
<!-- Handling rotation here instead of via logrotate in the server config to avoid restarting the process -->
2020
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">

0 commit comments

Comments
 (0)