Differences between revisions 14 and 15
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
 * [http://logging.apache.org/log4j/docs/api/org/apache/log4j/PropertyConfigurator.html#doConfigure(java.lang.String,%20org.apache.log4j.spi.LoggerRepository) Log4J PropertyConfigurator javadocs]
 * [http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/log4j/log4jhome.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
 * [http://wiki.apache.org/logging-log4j/FrontPage Official Log4J Wiki]
 * [http://logging.apache.org/log4j/docs/manual.html Short introduction to log4j] by Ceki Gülcü
 * [http://www.slf4j.org/nlog4j/faq.html Frequently Asked Questions about log4j]
 * [[http://logging.apache.org/log4j/docs/api/org/apache/log4j/PropertyConfigurator.html#doConfigure(java.lang.String,%20org.apache.log4j.spi.LoggerRepository)|Log4J PropertyConfigurator javadocs]]
 * [[http://supportweb.cs.bham.ac.uk/docs/tutorials/docsystem/build/tutorials/log4j/log4jhome.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
 * [[http://wiki.apache.org/logging-log4j/FrontPage|Official Log4J Wiki]]
 * [[http://logging.apache.org/log4j/docs/manual.html|Short introduction to log4j]] by Ceki Gülcü
 * [[http://www.slf4j.org/nlog4j/faq.html|Frequently Asked Questions about log4j]]

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 %d{ISO8601} [%t] (%c:%L) - %m%n

See also


CategoryCheatSheet

iDIAcomputing: Log4jDotProperties (last edited 2009-07-27 18:25:28 by localhost)