A
A
Alena2015-06-29 13:39:45
tomcat
Alena, 2015-06-29 13:39:45

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>

How to register so that the old logs are written to a separate folder (( Tell me, please

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question