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-09-08 01:51:50 -04:00
|
|
|
<RollingFile
|
|
|
|
name="RollingFile"
|
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-09-08 01:51:50 -04:00
|
|
|
</RollingFile>
|
2018-05-28 15:11:04 -04:00
|
|
|
|
2018-09-08 01:51:50 -04:00
|
|
|
<RollingFile
|
|
|
|
name="SlowFile"
|
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-09-08 01:51:50 -04:00
|
|
|
</RollingFile>
|
2018-05-28 15:11:04 -04:00
|
|
|
|
2018-03-25 22:16:09 -04:00
|
|
|
</Appenders>
|
|
|
|
<Loggers>
|
2018-09-08 01:51:50 -04:00
|
|
|
<Logger name="org.apache.hadoop" level="warn"/>
|
|
|
|
<Logger name="org.apache.solr.update.LoggingInfoStream" level="off"/>
|
|
|
|
<Logger name="org.apache.zookeeper" level="warn"/>
|
|
|
|
<Logger name="org.apache.solr.core.SolrCore.SlowRequest" level="info" additivity="false">
|
|
|
|
<AppenderRef ref="SlowFile"/>
|
|
|
|
</Logger>
|
2018-03-25 22:16:09 -04:00
|
|
|
|
2018-09-08 01:51:50 -04:00
|
|
|
<Root level="info">
|
|
|
|
<AppenderRef ref="RollingFile"/>
|
2018-03-25 22:16:09 -04:00
|
|
|
<AppenderRef ref="STDOUT"/>
|
2018-09-08 01:51:50 -04:00
|
|
|
</Root>
|
2018-03-25 22:16:09 -04:00
|
|
|
</Loggers>
|
|
|
|
</Configuration>
|