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

Should suppress message "ERROR No log4j2 configuration file found..." when programmatic API is used to config log4j.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6.2
    • None
    • Configurators
    • None

    Description

      Log4j can be configured through log4j's configuration API. There are cases that an organization want to control the log4j configuration through the configuration API and discourage the use of config file. The error message

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

      is misleading.

      Can this be downgraded to WARN message, or provide a way to suppress it?

      Attachments

        1. LOG4J2_1944.zip
          3 kB
          Weian Deng
        2. LOG4J2-1944.patch
          0.9 kB
          Weian Deng

        Issue Links

          Activity

            People

              Unassigned Unassigned
              weiand Weian Deng
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: