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

Improve error message when log4j 2 configuration file not found

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3, 2.4, 2.5, 2.6, 2.7, 2.8
    • Fix Version/s: 2.9.0
    • Component/s: Configurators
    • Labels:
      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

              • Assignee:
                remkop@yahoo.com Remko Popma
                Reporter:
                remkop@yahoo.com Remko Popma
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: