Fixed logging only WARN and above to file (and not ruing logging to stdout)

This commit is contained in:
dankito 2024-08-28 18:46:45 +02:00
parent edd9598a72
commit 53f7847146
1 changed files with 8 additions and 9 deletions

View File

@ -5,6 +5,10 @@
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
</appender>
<!-- Insert the current time formatted as "yyyyMMdd'T'HHmmss" under
@ -19,6 +23,10 @@
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
</appender>
<!-- enable or disable if FinTS message sent to and received from bank servers should get logged by setting level to 'debug' -->
@ -27,17 +35,8 @@
<appender-ref ref="file" />
</logger>
<!-- Do not log detailed messages of Logback's configuration (= the same what is stated in this file) -->
<logger name="ch.qos.logback.core.model.processor" level="warn">
<appender-ref ref="stdout" />
</logger>
<root level="INFO">
<appender-ref ref="stdout"/>
<!-- <appender-ref ref="file"/>-->
</root>
<root level="WARN">
<appender-ref ref="file"/>
</root>
</configuration>