Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12989

facilitate -Dsolr.log.muteconsole opt-out

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: logging, scripts and tools
    • Labels:
      None

      Description

      Having made a small log4j2.xml edit

       <Root level="info">
         <AppenderRef ref="RollingFile"/>
      -  <AppenderRef ref="STDOUT"/>
      +  <AppenderRef ref="STDOUT" level="error"/>
       </Root>
      

      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.

        Attachments

        1. SOLR-12989.patch
          1 kB
          Christine Poerschke
        2. SOLR-12989.patch
          4 kB
          Christine Poerschke

          Issue Links

            Activity

              People

              • Assignee:
                cpoerschke Christine Poerschke
                Reporter:
                cpoerschke Christine Poerschke
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: