From cfac19da39844f8ce8c2f54d9fd2aeb86c651b32 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Thu, 9 Apr 2015 13:12:29 +0000 Subject: [PATCH] SOLR-6673: Change default pattern for both console and file appenders git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1672331 13f79535-47bb-0310-9956-ffa450edef68 --- solr/example/resources/log4j.properties | 4 ++-- solr/server/resources/log4j.properties | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/solr/example/resources/log4j.properties b/solr/example/resources/log4j.properties index e55e1dda69c..92b21e5158a 100644 --- a/solr/example/resources/log4j.properties +++ b/solr/example/resources/log4j.properties @@ -5,7 +5,7 @@ log4j.rootLogger=INFO, file log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x \u2013 %m%n +log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x [%X{collection} %X{shard} %X{replica} %X{core}] \u2013 %m%n #- size rotation with log cleanup. log4j.appender.file=org.apache.log4j.RollingFileAppender @@ -15,7 +15,7 @@ log4j.appender.file.MaxBackupIndex=9 #- File to log to and log format log4j.appender.file.File=${solr.log}/solr.log log4j.appender.file.layout=org.apache.log4j.PatternLayout -log4j.appender.file.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; %C; %m\n +log4j.appender.file.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; [%X{collection} %X{shard} %X{replica} %X{core}] %C; %m\n log4j.logger.org.apache.zookeeper=WARN log4j.logger.org.apache.hadoop=WARN diff --git a/solr/server/resources/log4j.properties b/solr/server/resources/log4j.properties index 6c337a10bba..1f2916a6bfd 100644 --- a/solr/server/resources/log4j.properties +++ b/solr/server/resources/log4j.properties @@ -5,7 +5,7 @@ log4j.rootLogger=INFO, file, CONSOLE log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x [%X{collection}] [%X{shard}] [%X{replica}] [%X{core}] \u2013 %m%n +log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x [%X{collection} %X{shard} %X{replica} %X{core}] \u2013 %m%n #- size rotation with log cleanup. log4j.appender.file=org.apache.log4j.RollingFileAppender @@ -15,7 +15,7 @@ log4j.appender.file.MaxBackupIndex=9 #- File to log to and log format log4j.appender.file.File=${solr.log}/solr.log log4j.appender.file.layout=org.apache.log4j.PatternLayout -log4j.appender.file.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; %C; %m\n +log4j.appender.file.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; [%X{collection} %X{shard} %X{replica} %X{core}] %C; %m\n log4j.logger.org.apache.zookeeper=WARN log4j.logger.org.apache.hadoop=WARN