Skip to content

Commit

Permalink
Endrer securelogger
Browse files Browse the repository at this point in the history
  • Loading branch information
stigebil committed Aug 12, 2024
1 parent 0789f30 commit 55b1e90
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,22 @@
<property name="ROOT_LOG_LEVEL" value="INFO"/>

<!-- Logger for sensitive data -->
<appender name="secureLoggerRestAppender" class="no.nav.familie.log.appender.SecureLoggerRestAppender"/>
<!-- Logger for sensitive data -->
<appender name="secureLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/secure-logs/secure.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>/secure-logs/secure.log.%i</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>1</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>50MB</maxFileSize>
</triggeringPolicy>
<encoder class="net.logstash.logback.encoder.LogstashEncoder"/>
</appender>

<logger name="secureLogger" level="INFO" additivity="false">
<appender-ref ref="secureLoggerRestAppender"/>
<appender-ref ref="secureLog"/>
</logger>


Expand Down

0 comments on commit 55b1e90

Please sign in to comment.