Permalink
Fetching contributors…
Cannot retrieve contributors at this time
83 lines (67 sloc) 3.13 KB
<configuration scan="true" scanPeriod="60 seconds">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="SOLR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${solr.log}/solr.log</file>
<filter class="ch.qos.logback.access.filter.CountingFilter">
<name>solrLogCountingFilter</name>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${solr.log}/solr.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxHistory>14</maxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>%d{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${solr.log}/error.log</file>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>ERROR</level>
</filter>
<filter class="ch.qos.logback.access.filter.CountingFilter">
<name>errorLogCountingFilter</name>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${solr.log}/error.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxHistory>14</maxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>%d{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="ACCESS" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${solr.log}/access.log</file>
<filter class="ch.qos.logback.access.filter.CountingFilter">
<name>accessLogCountingFilter</name>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${solr.log}/access.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxHistory>14</maxHistory>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>100MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<logger name="http.access" level="INFO" additivity="false">
<appender-ref ref="ACCESS"/>
<appender-ref ref="STDOUT"/>
</logger>
<root level="info">
<appender-ref ref="SOLR"/>
<appender-ref ref="ERROR"/>
<appender-ref ref="STDOUT"/>
</root>
</configuration>