WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Configuring applications to use Jakarta Commons Logging

Jakarta Commons Logging provides a simple logging interface and thin wrappers for several logging systems. WebSphere Application Server supports Jakarta Commons Logging by providing a logger. The support does not change interfaces defined by Jakarta Commons Logging.

Before you begin

The WebSphere Application Server logger is a thin wrapper for the WebSphere Application Server logging facility. The logger name is com.ibm.websphere.commons.logging.WsJDK14Logger. The logger can handle logging objects defined by either of the following:

A logging object is an object that holds logging entry information.

To better understand Jakarta Commons Logging, read Jakarta Commons and the specifications for Java Logging and for CBE. To better understand use of the WebSphere Application Server logger, read Jakarta Commons Logging.

Why and when to perform this task

The WebSphere Application Server provides the Jakarta Commons Logging binary distribution in its libraries directory. By default, WebSphere Application Server uses the Jakarta Commons Logging LogFactory implementation and Jdk14Logger.

For an application to use the WebSphere Application Server logger, the application must provide its own configuration for the logger. To configure an application to use the WebSphere Application Server logger, complete the steps that follow.

Steps for this task

  1. Examine Configurations for the WebSphere logger and determine which configuration best suits your application.
  2. Change your application configuration as needed to enable use of the WebSphere Application Server logger.

Result

After the application starts, Jakarta Commons Logging routes the application's logging output to the WebSphere Application Server logger.



Sub-topics
Jakarta Commons Logging
Configurations for the WebSphere logger

Related tasks
Adding logging and tracing to your application

Related information
JSR 47: Logging API Specification
Jakarta Commons
Specification: Common Base Event
Standardize messages with the Common Base Event model
Logging/Containers And Classloaders

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/ttrb_classload_jcl.html

© Copyright IBM Corporation 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)