2018-03-25 22:16:09 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<Configuration>
|
|
|
|
<Appenders>
|
2018-05-28 15:11:04 -04:00
|
|
|
|
2018-03-25 22:16:09 -04:00
|
|
|
<Console name="STDOUT" target="SYSTEM_OUT">
|
|
|
|
<PatternLayout>
|
|
|
|
<Pattern>
|
|
|
|
%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
|
|
|
|
</Pattern>
|
|
|
|
</PatternLayout>
|
|
|
|
</Console>
|
2018-05-28 15:11:04 -04:00
|
|
|
|
2018-08-31 23:39:05 -04:00
|
|
|
<RollingRandomAccessFile
|
|
|
|
name="MainLogFile"
|
2018-03-26 14:20:21 -04:00
|
|
|
fileName="${sys:solr.log.dir}/solr.log"
|
2018-04-02 13:14:09 -04:00
|
|
|
filePattern="${sys:solr.log.dir}/solr.log.%i" >
|
2018-03-25 22:16:09 -04:00
|
|
|
<PatternLayout>
|
|
|
|
<Pattern>
|
|
|
|
%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
|
|
|
|
</Pattern>
|
|
|
|
</PatternLayout>
|
|
|
|
<Policies>
|
|
|
|
<OnStartupTriggeringPolicy />
|
2018-03-26 14:20:21 -04:00
|
|
|
<SizeBasedTriggeringPolicy size="32 MB"/>
|
2018-03-25 22:16:09 -04:00
|
|
|
</Policies>
|
2018-03-26 14:20:21 -04:00
|
|
|
<DefaultRolloverStrategy max="10"/>
|
2018-08-31 23:39:05 -04:00
|
|
|
</RollingRandomAccessFile>
|
2018-05-28 15:11:04 -04:00
|
|
|
|
2018-08-31 23:39:05 -04:00
|
|
|
<RollingRandomAccessFile
|
|
|
|
name="SlowLogFile"
|
2018-05-28 15:11:04 -04:00
|
|
|
fileName="${sys:solr.log.dir}/solr_slow_requests.log"
|
|
|
|
filePattern="${sys:solr.log.dir}/solr_slow_requests.log.%i" >
|
|
|
|
<PatternLayout>
|
|
|
|
<Pattern>
|
|
|
|
%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
|
|
|
|
</Pattern>
|
|
|
|
</PatternLayout>
|
|
|
|
<Policies>
|
|
|
|
<OnStartupTriggeringPolicy />
|
|
|
|
<SizeBasedTriggeringPolicy size="32 MB"/>
|
|
|
|
</Policies>
|
|
|
|
<DefaultRolloverStrategy max="10"/>
|
2018-08-31 23:39:05 -04:00
|
|
|
</RollingRandomAccessFile>
|
2018-05-28 15:11:04 -04:00
|
|
|
|
2018-03-25 22:16:09 -04:00
|
|
|
</Appenders>
|
|
|
|
<Loggers>
|
2018-08-31 23:39:05 -04:00
|
|
|
<AsyncLogger name="org.apache.hadoop" level="warn"/>
|
|
|
|
<AsyncLogger name="org.apache.solr.update.LoggingInfoStream" level="off"/>
|
|
|
|
<AsyncLogger name="org.apache.zookeeper" level="warn"/>
|
|
|
|
<AsyncLogger name="org.apache.solr.core.SolrCore.SlowRequest" level="info" additivity="false">
|
|
|
|
<AppenderRef ref="SlowLogFile"/>
|
|
|
|
</AsyncLogger>
|
2018-03-25 22:16:09 -04:00
|
|
|
|
2018-08-31 23:39:05 -04:00
|
|
|
<AsyncRoot level="info">
|
|
|
|
<AppenderRef ref="MainLogFile"/>
|
2018-03-25 22:16:09 -04:00
|
|
|
<AppenderRef ref="STDOUT"/>
|
2018-08-31 23:39:05 -04:00
|
|
|
</AsyncRoot>
|
2018-03-25 22:16:09 -04:00
|
|
|
</Loggers>
|
|
|
|
</Configuration>
|