JBoss at Work: A Practical Guide

Most J2EE applications use some form of logging or tracing API that stores messages to a persistent medium (such as DBMS or file). Logging provides the following benefits:

Debugging

Developers generate log messages to debug their programs.

Reviewing

System personnel examine log messages to check for problems.

Auditing

Security personnel can review log messages to see what actions a user performed in the system.

This chapter covers two of the most common logging APIs and how to use them with JBoss:

  • Jakarta Commons Logging (JCL) API

  • Apache Log4J

Категории