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

Incompatible behavior for log4j 1.2 bridge regarding PropertiesConfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.0, 2.17.2
    • None
    • Log4j 1.2 bridge
    • None

    Description

      Log4j2 1.2 bridge api has been since forever a no-op regarding the PropertiesConfiguration.

      This feature is actively used in our projects: we depend on third party apis that tries to override log4j configuration by calling PropertyConfiguration.configure with custom property files.

      We use the advanced features from log4j2 with those legacy code to, among other things, cope with GDPR (we specify a log4j2 custom made RedactorLayout ) to be used with this legacy code, and count with the fact that the log4j2.xml file configuration is not overriden elsewhere.

      I do reckon that this change makes log4j 1.2 to 2.0 transition easier for most people, but this should be something that could be turned off somehow.

      Possible solutions:

      • add a log4j-1.2-noconfig jar that doesn't implement the PropertiesConfiguration.
      • add a property or environment variable that allows to enable/disable this feature.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abpicoli1@kyndryl.com Alexander Picoli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: