Skip to content

Commit

Permalink
Disable logging to a file
Browse files Browse the repository at this point in the history
User application like this shouldn't log to a file by default.
  • Loading branch information
Ape committed Jan 4, 2025
1 parent 598edc5 commit b6e81ce
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@
</encoder>
</appender>

<appender name="FILE-ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${luciferin.folder}/logs/FireflyLuciferin.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>logs/archived/app.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<!-- each archived file, size max 2MB -->
<maxFileSize>2MB</maxFileSize>
<!-- total size of all archive files, if total size > 10MB, it will delete old archived file -->
<totalSizeCap>10MB</totalSizeCap>
<!-- days to keep -->
<maxHistory>15</maxHistory>
</rollingPolicy>

<encoder>
<pattern>%instanceNumber %d %p %c{1} [%t] %m%n</pattern>
</encoder>
</appender>

<logger name="org.dpsoftware" level="info" additivity="false">
<appender-ref ref="FILE-ROLLING"/>
</logger>
Expand Down

0 comments on commit b6e81ce

Please sign in to comment.