Skip to content

Commit

Permalink
chore: add logback for externalid
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancailbourdin committed Nov 19, 2024
1 parent 14681ee commit cd71bfd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions overlays/externalid/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>

<configuration scan="true" scanPeriod="30 seconds">
<contextName>externalid</contextName>
<jmxConfigurator/>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/${CONTEXT_NAME}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_DIR}/archives/${CONTEXT_NAME}.%d{yyyy-MM-dd}.log.gz
</fileNamePattern>
<maxHistory>90</maxHistory>
</rollingPolicy>
<encoder>
<charset>UTF-8</charset>
<Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger: %msg%n</Pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="FILE"/>
</root>

<logger name="fr.recia" level="INFO"/>
<logger name="org" level="WARN"/>

<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>

</configuration>

0 comments on commit cd71bfd

Please sign in to comment.