java - log4j sample configuration file (properties file) -
What is the easiest way to get started with log4j configuration?
Put a file named log4j.properties
in the root of your squared path:
log4j.rootLogger = All, console log4j.appender.Console = org.apache.log4j.ConsoleAppender log4j.appender.Console.layout = org.apache.log4j.PatternLayout log4j.appender.Console .layout.conversionPattern =% M% n
and nothing else will require Log4j to detect it and configure itself.
Comments
Post a Comment