Deletions are marked like this. | Additions are marked like this. |
Line 18: | Line 18: |
* [http://www.onjava.com/pub/a/onjava/2003/04/02/log4j_ejb.html Configuring Log4J in an EAR file] by Vikram Goyal |
Here's a minimalist log4j.properties file you can use if you're getting messages that say
- log4j:WARN No appenders could be found for logger log4j:WARN Please initialize the log4j system properly.
#If you want to see what Log4J is doing: #log4j.debug=true log4j.rootCategory=INFO,console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%5p (%F:%L) - %m%n
See also
[http://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/log4j/log4j.html Log4J Tutorial] by Ashley J.S Mills, The University Of Birmingham.
[http://www.onjava.com/pub/a/onjava/2003/04/02/log4j_ejb.html Configuring Log4J in an EAR file] by Vikram Goyal