Minimal file

Here’s a minimal log4j properties file defining a console appender and pattern formatter:

log4j.rootLogger=DEBUG, console

#console appender

#define patternlayour for console appender
log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.