Skip to content

Commit

Permalink
f - Legger konfig for securelog (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas authored Nov 8, 2023
1 parent 1d552f1 commit 2e25b68
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@
<logger name="auditLogger" level="INFO" additivity="false">
<appender-ref ref="auditLogger" />
</logger>

<appender name="secureLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>build/secure.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>build/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">
<includeCallerData>true</includeCallerData>
</encoder>
</appender>


<logger name="secureLog" level="DEBUG" additivity="false">
<appender-ref ref="secureLog"/>
<appender-ref ref="stdout"/> <!-- kun for lokale tester! -->
</logger>

<root level="DEBUG">
<appender-ref ref="stdout" />
</root>
Expand Down

0 comments on commit 2e25b68

Please sign in to comment.