Be Careful of Log4J’s PatternLayout
Posted in Code on Aug 8th, 2005
This past week I ran into an interesting issue with Log4J. We had an appender in our log4j.xml file that used PatternLayout with the following pattern: “[%-5p] %d{DATE} %c {%F:%L} - %m%n”. I was looking to reduce the amount of information being written to the log files as they are getting difficult to read. I […]




