Skip to content

Commit

Permalink
fix: update logger configuration for test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
kapiaszczyk committed Apr 24, 2024
1 parent aabc774 commit d3b8db7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<configuration>
<property name="LOGS" value="./logs"/>
<property name="LOGS" value="./logs/test"/>
<conversionRule conversionWord="threadId" converterClass="com.kapia.jobboard.api.data.util.ThreadIdConverter"/>
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
Expand All @@ -19,10 +19,10 @@
</encoder>
</appender>
<appender name="RollingFile" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOGS}/production-logger.log</file>
<file>${LOGS}/test-logger.log</file>
<rollingPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOGS}/archived/production-logger-%d.%i.log</fileNamePattern>
<fileNamePattern>${LOGS}/archived/test-logger-%d.%i.log</fileNamePattern>
<maxFileSize>5MB</maxFileSize>
<maxHistory>30</maxHistory>
</rollingPolicy>
Expand Down

0 comments on commit d3b8db7

Please sign in to comment.