aboutsummaryrefslogtreecommitdiff
path: root/basicConfig/ms-proxyservice
diff options
context:
space:
mode:
authorThomas <>2022-12-07 10:54:35 +0100
committerThomas <>2022-12-07 10:54:35 +0100
commit30f1ff7b45f3d05147329323751516ed8114c9f2 (patch)
tree5808fc3e5f3c8f26e2d25bbd2ec224d4086dd382 /basicConfig/ms-proxyservice
parentd4811a0890a72198abae5b4a8bfa756ada1fc3f6 (diff)
downloadNational_eIDAS_Gateway-30f1ff7b45f3d05147329323751516ed8114c9f2.tar.gz
National_eIDAS_Gateway-30f1ff7b45f3d05147329323751516ed8114c9f2.tar.bz2
National_eIDAS_Gateway-30f1ff7b45f3d05147329323751516ed8114c9f2.zip
feat(proxyservice): add additional JSON based statistic logger
Diffstat (limited to 'basicConfig/ms-proxyservice')
-rw-r--r--basicConfig/ms-proxyservice/logback_config.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/basicConfig/ms-proxyservice/logback_config.xml b/basicConfig/ms-proxyservice/logback_config.xml
index d2bf5d85..a7e1552b 100644
--- a/basicConfig/ms-proxyservice/logback_config.xml
+++ b/basicConfig/ms-proxyservice/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_proxyservice.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_proxyservice.%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.proxy.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>