2016-09-22 15:05:28 -04:00
|
|
|
# Default Solr log4j config
|
|
|
|
# rootLogger log level may be programmatically overridden by -Dsolr.log.level
|
2016-10-14 17:19:09 -04:00
|
|
|
solr.log=${solr.log.dir}
|
2013-03-27 10:09:38 -04:00
|
|
|
log4j.rootLogger=INFO, file, CONSOLE
|
|
|
|
|
2016-09-21 19:18:27 -04:00
|
|
|
# Console appender will be programmatically disabled when Solr is started with option -Dsolr.log.muteconsole
|
2013-03-27 10:09:38 -04:00
|
|
|
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
|
2015-05-27 09:33:32 -04:00
|
|
|
log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout
|
2016-09-21 19:18:27 -04:00
|
|
|
log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
|
2013-03-27 10:09:38 -04:00
|
|
|
|
|
|
|
#- size rotation with log cleanup.
|
|
|
|
log4j.appender.file=org.apache.log4j.RollingFileAppender
|
|
|
|
log4j.appender.file.MaxFileSize=4MB
|
|
|
|
log4j.appender.file.MaxBackupIndex=9
|
|
|
|
|
|
|
|
#- File to log to and log format
|
2013-06-26 16:18:33 -04:00
|
|
|
log4j.appender.file.File=${solr.log}/solr.log
|
2015-05-27 09:33:32 -04:00
|
|
|
log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout
|
2016-06-06 17:21:49 -04:00
|
|
|
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
|
2013-04-07 22:39:01 -04:00
|
|
|
|
2016-09-22 15:05:28 -04:00
|
|
|
# Adjust logging levels that should differ from root logger
|
2013-06-26 16:18:33 -04:00
|
|
|
log4j.logger.org.apache.zookeeper=WARN
|
|
|
|
log4j.logger.org.apache.hadoop=WARN
|
2016-09-22 11:03:24 -04:00
|
|
|
log4j.logger.org.eclipse.jetty=WARN
|
2016-09-22 15:05:28 -04:00
|
|
|
log4j.logger.org.eclipse.jetty.server.Server=INFO
|
|
|
|
log4j.logger.org.eclipse.jetty.server.ServerConnector=INFO
|
2013-07-02 09:34:12 -04:00
|
|
|
|
|
|
|
# set to INFO to enable infostream log messages
|
|
|
|
log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF
|