O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The log4j API

The first logging package we will examine is the log4j package from the Apache Jakarta project. This is a mature logging API that provides a rich feature set for formatting and controlling logging activity. Logging output can be directed to one or more logs based on severity levels, the name of the component performing the logging, or any arbitrary filter criteria.

The log4j logging package is flexible. Logging output can be directed to a file (either OutputStream or Writer), a remote log4j server, the UNIX Syslog, or the NT event logger. Various configuration parameters can be changed; for example, you can use different logging devices or log different severity levels. Most configuration changes do not require changes to the code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required