Details
-
Test
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
log4j 1.2 does not enforce a clean separation between configuration and service provision. Some configuration changes take effect immediately, some only on a call to activateOptions and rarely are they appropriately synchronized with the service provision. log4j 2.0 should have services provided by immutable or at least not externally immutable objects and keep configuration in distinct classes that construct the service providing instance and then replace the existing service with proper synchronization.
This is related to prefer immutable classes