You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by wolvverine <wo...@gmail.com> on 2014/09/24 12:00:48 UTC

log to file and to logging tab in web interface at the same time

Is any way to logging to file (J done this) AND see fresh logs in solr
web interface (tab logging) ?

my  configuration in *.war file classes/log4j.properties:

#  Logging level
solr.log=/usr/local/inp/logs/tomcat
log4j.rootLogger=WARN, File, Console

# Log to 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 \u2013 %m%n

#- 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
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

# set  Log level log messages
log4j.logger.org.apache.zookeeper=WARN
log4j.logger.org.apache.hadoop=WARN

# set to INFO to enable infostream log messages
log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF
log4j.logger.org.apache.solr=WARN
log4j.logger.org.apache.solr.cloud=WARN
log4j.logger.org.apache.solr.common=WARN
log4j.logger.org.apache.solr.core=WARN
log4j.logger.org.apache.solr.dataimport=WARN
log4j.logger.org.apache.zookeeper=WARN