Logging Common Base Events in WAS
WAS uses Common Base Events within its logging framework. Common Base Events can be created explicitly and then logged through the Java logging API, or can be created implicitly by using the Java logging API directly.
Overview
An event is a notification from an application or the appserver that reports information that is related to a specific problem or situation. Common Base Events provide you with a standard structure for these event notifications, which allow you to correlate events that are received from different applications. Log Common Base Events to capture events from different sources to help you fix a problem within an application environment or to tune system performance.
For Common Base Event creation, the appserver environment provides a Common Base Event factory with a content handler that provides both runtime data and template data for Common Base Events.
Procedure
- Optional: Read about the Common Base Event types and how they are implemented within an appserver. Refer to The Common Base Event in WAS.
- Read Best practices for logging Common Base Events in WebSphere Application Server.
- Configure the Common Base Event framework for your appserver using one of the following methods:
- Logging with Common Base Event API and the Java logging API
- Generate Common Base Event content with the default event factory.
Results
Common Base Events will now be logged according to the configuration. Use these event logs to determine the source of application problems.
The Common Base Event in WAS
Logging with Common Base Event API and the Java logging API
java.util.logging -- Java logging programming interface
Logger.properties file
Best practices for logging Common Base Events in WebSphere Application Server