Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.18.0, 2.17.2
-
None
-
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
- is duplicated by
-
LOG4J2-3467 Update from Log4J 2.17.1 to 2.17.2 breaks application
- Closed