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 KRIS MUSSHORN <mu...@comcast.net> on 2017/04/07 13:17:39 UTC
logging issue
SOLR 5.4.1
log files have this entry
log4j:ERROR Could not find value for key log4j.appender.: file
log4j:ERROR Could not instantiate appender named ": file".
Here is my config file and the only thing i have changed is set level to FINEST in line 3. Otherwise this is the default file.
# Logging level
solr.log=logs
log4j.rootLogger=FINEST,: file, CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
#- size rotation with log cleanup.
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.MaxFileSize=100MB
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.EnhancedPatternLayout
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
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
Re: logging issue
Posted by KRIS MUSSHORN <mu...@comcast.net>.
removing the colon crushed it. thanks
the reason i'm looking at this is the logging screen is not showing log content...last check shows the spinning wheel to the left.
Time (Local) Level Core Logger Message
No Events available
Last Check:4/7/2017, 10:26:43 AM
Google chrome, IE 10 and Firefox all show the same.
What can I do to correct and see the logs?
Kris
>
> On April 7, 2017 at 10:04 AM Erick Erickson <er...@gmail.com> wrote:
>
> You also put a colon ':' in
>
> FINEST, :
>
> BTW, this will give you a _lot_ of output....
>
> Best,
> Erick
>
> On Fri, Apr 7, 2017 at 6:17 AM, KRIS MUSSHORN <mu...@comcast.net> wrote:
>
> > >
> > SOLR 5.4.1
> >
> > log files have this entry
> >
> > log4j:ERROR Could not find value for key log4j.appender.: file
> > log4j:ERROR Could not instantiate appender named ": file".
> >
> > Here is my config file and the only thing i have changed is set level to FINEST in line 3. Otherwise this is the default file.
> >
> > # Logging level
> > solr.log=logs
> > log4j.rootLogger=FINEST,: file, CONSOLE
> >
> > log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> >
> > log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout
> > log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
> >
> > #- size rotation with log cleanup.
> > log4j.appender.file=org.apache.log4j.RollingFileAppender
> > log4j.appender.file.MaxFileSize=100MB
> > 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.EnhancedPatternLayout
> > 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
> >
> > 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
> >
> > >
Re: logging issue
Posted by Erick Erickson <er...@gmail.com>.
You also put a colon ':' in
FINEST, :
BTW, this will give you a _lot_ of output....
Best,
Erick
On Fri, Apr 7, 2017 at 6:17 AM, KRIS MUSSHORN <mu...@comcast.net> wrote:
> SOLR 5.4.1
>
> log files have this entry
>
>
> log4j:ERROR Could not find value for key log4j.appender.: file
> log4j:ERROR Could not instantiate appender named ": file".
>
>
> Here is my config file and the only thing i have changed is set level to FINEST in line 3. Otherwise this is the default file.
>
> # Logging level
> solr.log=logs
> log4j.rootLogger=FINEST,: file, CONSOLE
>
> log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
>
> log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout
> log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n
>
> #- size rotation with log cleanup.
> log4j.appender.file=org.apache.log4j.RollingFileAppender
> log4j.appender.file.MaxFileSize=100MB
> 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.EnhancedPatternLayout
> 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
>
> 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
>