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

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -