Add note to docs on whitespace in Log4j settings

A confusing thing that can happen when configuring Log4j is that
extraneous whitespace throws off its configuration parsing yet the error
messages that arise give no indication that this is the problem. This
commit adds a note to the docs.

Relates #24198
This commit is contained in:
Jason Tedor 2017-04-20 07:29:21 -04:00 committed by GitHub
parent 55a879ee8d
commit 7a934bd6f4
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,10 @@ appender.rolling.policies.time.modulate = true <6>
<6> Align rolls on the day boundary (as opposed to rolling every twenty-four
hours)
NOTE: Log4j's configuration parsing gets confused by any extraneous whitespace;
if you copy and paste the above settings, or enter any Log4j configuration in
general, be sure to trim any leading and trailing whitespace.
If you append `.gz` or `.zip` to `appender.rolling.filePattern`, then the logs
will be compressed as they are rolled.