Answer the question
In order to leave comments, you need to log in
How to set up logging?
Now configured - so
<!--Логирование различных метрик во время работы системы-->
<appender name="metrics" class="org.apache.log4j.DailyRollingFileAppender">
<param name="Threshold" value="INFO"/>
<param name="File" value="${catalina.base}/logs/hepreg-metrics.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd.MM.yyyy HH:mm:ss}|%-5p|%t|%X{userName}|%X{req.userAgent}|%X{req.requestURL}|%X{req.queryString}|%C|%m%n"/>
</layout>
</appender>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question