[ https://issues.apache.org/jira/browse/SOLR-12989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16687942#comment-16687942 ]
Jan Høydahl edited comment on SOLR-12989 at 11/15/18 12:44 PM: --------------------------------------------------------------- Sure. But people upgrading from 7.5 to 7.6 may simply upgrade without modifying their old solr.in.sh. But in that case the log4j2.xml will also be replaced with the one no spewing out everything to stdout. Have you tested your patch with {code:java} bin/solr start -f{code} Running in foreground must still show INFO level of course. It should also still work to change the log-level using {{-v}} and {{-q}} {code:java} bin/solr start -f -v # for verbose/DEBUG output bin/solr start -f -q # for quiet/WARN output{code} was (Author: janhoy): Sure. But people upgrading from 7.5 to 7.6 may simply upgrade without modifying their old solr.in.sh. But in that case the log4j2.xml will also be replaced with the one no spewing out everything to stdout. Have you tested your patch with {code:java} bin/solr start -f{code} Running in foreground must still show INFO level of course > facilitate -Dsolr.log.muteconsole opt-out > ----------------------------------------- > > Key: SOLR-12989 > URL: https://issues.apache.org/jira/browse/SOLR-12989 > Project: Solr > Issue Type: Improvement > Components: logging, scripts and tools > Reporter: Christine Poerschke > Assignee: Christine Poerschke > Priority: Minor > Attachments: SOLR-12989.patch > > > Having made a small log4j2.xml edit > {code} > <Root level="info"> > <AppenderRef ref="RollingFile"/> > - <AppenderRef ref="STDOUT"/> > + <AppenderRef ref="STDOUT" level="error"/> > </Root> > {code} > I was surprised to find the errors logged in the {{solr.log}} file but not in > the {{solr-*-console.log}} file. > https://lucene.apache.org/solr/guide/7_5/configuring-logging.html#permanent-logging-settings > very helpfully mentioned how the console logger is disabled when running in > the background. > This ticket proposes to facilitate opting out of the muting via a > {{SOLR_LOG_MUTECONSOLE_OPT}} option. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org