Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1812

Improve error message when log4j 2 configuration file not found

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3, 2.4, 2.5, 2.6, 2.7, 2.8
    • 2.9.0
    • Configurators
    • None

    Description

      When configuration fails because no Log4j 2 configuration file is found, the following message is logged to the console at ERROR level:

      No log4j2 configuration file found. Using default configuration: logging only errors to the console.
      

      We should be able to improve this. One idea is to add this:

      No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 internal initialization logging.
      

      Another idea is to dump the contents of the StatusLogger ring buffer to the console.

      Attachments

        Issue Links

          Activity

            People

              rpopma Remko Popma
              rpopma Remko Popma
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: