aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search/src/main/resources/logback.xml
blob: 648ece82e289f684f1dc7f386f0d8a4c68fe94c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8" ?>

<!--
  Configuration for default logger. Only used while embedded server is starting,
  before proper logging configuration is loaded.

  See http://logback.qos.ch/manual/configuration.html
-->
<configuration debug="false">
  <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>

  <appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <File>${sonar.path.logs}/search.log</File>
    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
      <param name="FileNamePattern" value="${sonar.path.logs}/search.%i.log"/>
      <param name="MinIndex" value="1"/>
      <param name="MaxIndex" value="3"/>
    </rollingPolicy>
    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
      <param name="MaxFileSize" value="5MB"/>
    </triggeringPolicy>
    <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
      <!-- Use %d{yyyy.MM.dd HH:mm:ss.SSS} to display milliseconds -->
      <pattern>
        %d{yyyy.MM.dd HH:mm:ss} %-5level [%logger{20}] %X %msg%n
      </pattern>
    </encoder>
  </appender>

  <root>
    <level value="INFO"/>
    <appender-ref ref="LOGFILE"/>
  </root>

</configuration>