Details
-
Improvement
-
Resolution: Fixed
-
Trivial
-
4.1
-
None
-
None
Description
Sometimes is useful to have the server name in log4j log messages. In the default log4j configuration we already use the ${server} variable (snippet from log4j.xml):
<param name="ConversionPattern" value="[$\{server}] %-5p %d\{dd.MM.yyyy HH:mm:ss} %c %F(%M:%L) - %m%n" />
<param name="Header" value="%n
===================================%n
Magnolia%n
Version: $\{pom.version}%n
Server: $\{server}%n
Url: %X\{requesturi}%n
Userid: %X\{userid}%n
Number of occurrences: %o%n
===================================%n
" />
"pom.version" is replaced by maven, "requesturi" and "userid" are set by a filter, but "server" needs to be set as a system property in order to work. It's safe to set it since it can't differ also if more webapps are running on the same jvm.
Checklists
Acceptance criteria
Attachments
Issue Links
- is causing
-
MAGNOLIA-3541 Inconsistency in properties naming (at least for "server name")
-
- Closed
-