Details
-
Documentation
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.11.1
-
Any project with log4j using as configuration a file like the one attached as example.
With this configuration, logs will be printed as ${defaultLayout} instead of the actual message.
Description
Tweaking my log configuration I found out that if the <Properties> is not placed at the beginning of the config just after the <Configuration> tag, the property substitution is not performed at all.
Looking at the documentation I haven't seen anything related to the ordering of the elements in the config files. If there's a good reason that the properties should be placed first place in configuration, it'd be a good idea to note it somewhere in the documentation.