Created
October 4, 2014 01:58
-
-
Save kevinhooke/6f7cd1a83da09dad813d to your computer and use it in GitHub Desktop.
Log4j 1.x basic log4j.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log4j.rootLogger=DEBUG, console | |
#console appender | |
log4j.appender.console=org.apache.log4j.ConsoleAppender | |
#define patternlayour for console appender | |
log4j.appender.console.layout=org.apache.log4j.PatternLayout | |
log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n |
Author
kevinhooke
commented
Apr 14, 2015
- remove [%t] if including the thread name is too verbose
- add log4j.logger.package.name=level to control specific logger levels
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment