Versions Compared

Key

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

...

The advantage of using java.util.logging over log4j is that no additional dependencies are introduced.

Web Application logging with Log4j

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>

Redirection stdout and stderr to Logger

...