Skip to content

Commit

Permalink
Fix logback to actually roll logs
Browse files Browse the repository at this point in the history
This also fixes the issue where logback was logging to stdout on
startup, trying to tell me that the rolling config was invalid.
  • Loading branch information
tobias committed Apr 14, 2024
1 parent d3a7cff commit 6824d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<configuration debug="false">

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

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

0 comments on commit 6824d96

Please sign in to comment.