aboutsummaryrefslogtreecommitdiff
path: root/basicConfig
diff options
context:
space:
mode:
authorThomas <>2022-10-21 14:32:29 +0200
committerThomas <>2022-10-21 14:32:29 +0200
commit2e92a85fac99d5f2366197bbd9d24436efa21c22 (patch)
treeee9cc7a35a0a7a04041fe53f7cccfcb3ae07efad /basicConfig
parent7798a53d11d5a57ca8abde0ab24d9c42b8bb4d9b (diff)
downloadNational_eIDAS_Gateway-2e92a85fac99d5f2366197bbd9d24436efa21c22.tar.gz
National_eIDAS_Gateway-2e92a85fac99d5f2366197bbd9d24436efa21c22.tar.bz2
National_eIDAS_Gateway-2e92a85fac99d5f2366197bbd9d24436efa21c22.zip
feat(connector): add JSON based statistic logger
Diffstat (limited to 'basicConfig')
-rw-r--r--basicConfig/ms-connector/logback_config.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/basicConfig/ms-connector/logback_config.xml b/basicConfig/ms-connector/logback_config.xml
index a6a2738f..5f0b80f7 100644
--- a/basicConfig/ms-connector/logback_config.xml
+++ b/basicConfig/ms-connector/logback_config.xml
@@ -52,6 +52,21 @@
</triggeringPolicy>
</appender>
+ <appender name="statisticJson" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
+ <File>${catalina.base}/logs/eidas-ms-statistic-json.log</File>
+ <encoder>
+ <pattern>%m%n</pattern>
+ </encoder>
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+ <maxIndex>9999</maxIndex>
+ <FileNamePattern>${catalina.base}/logs/eidas-ms-statistic-json.log.%i</FileNamePattern>
+ </rollingPolicy>
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+ <MaxFileSize>10000KB</MaxFileSize>
+ </triggeringPolicy>
+ </appender>
+
<appender name="stdout" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
<File>${catalina.base}/logs/console.log</File>
@@ -72,6 +87,9 @@
<logger name="at.asitplus.eidas.specific.core.logger.StatisticLogger" additivity="false" level="info">
<appender-ref ref="statistic"/>
</logger>
+ <logger name="at.asitplus.eidas.specific.core.logger.AdvancedStatisicLogger" additivity="false" level="info">
+ <appender-ref ref="statisticJson"/>
+ </logger>
<logger name="at.asitplus.eidas.specific.core.logger.RevisionLogger" level="info">
<appender-ref ref="reversion"/>
</logger>