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

AsyncLoggerContextSelector+PropertiesConfigurationBuilder defaults to includeLocation=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7
    • Configurators
    • None

    Description

      The async documentation seems to indicate that includeLocation=false by default for async loggers/appenders and for the all-async

      When using properties files PropertiesConfigurationBuilder seems to default to includeLocation=true for the root logger and loggers, unless the logger/appender has type=asyncLogger/Appender or you manually specify includeLocation.

      I assume this is specific to properties config but haven't verified that.

      Currently using the latest log4j (2.6.2).

      Side note: I'm using my own ConfigurationFactory, but it just delegates to PropertiesConfigurationFactory which uses PropertiesConfigurationBuilder. I don't think this should effect anything.

      Attachments

        Activity

          People

            mikaelstaldal Mikael Ståldal
            jbedard Jason Bedard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: