Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Web Application logging with Log4j

To use Log4j for your logging you need to add the following dependencies to your project:

Code Block
<dependency>
   <groupId>commons-logging</groupId>
   <artifactId>commons-logging</artifactId>
   <version>1.1</version>
   <type>jar</type>
   <url>http://jakarta.apache.org/commons/logging</url>
   <properties>
      <war.bundle>true</war.bundle>
   </properties>
</dependency>
<dependency>
   <groupId>log4j</groupId>
   <artifactId>log4j</artifactId>
   <version>1.2.13</version>
   <type>jar</type>
   <url>http://logging.apache.org/log4j/docs/</url>
   <properties>
      <war.bundle>true</war.bundle>
   </properties>
</dependency>

...