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

Configuring Common Base Events for an application

The logger.properties file allows you to set logger attributes for your component. The properties file is loaded the first time the method Logger.getLogger(loggername) is called within an application. The logger.properties file must be either on the WebSphere Application Server class path, or the context class path. See Configuring logging properties for an application for details on the logger.properties file

To use the Common Base Events standard for events generated by your application, include the eventfactory property in your logger.properties file. The event factory property specifies the name of the Common Base Event template to use with the event factory. See Sample Common Base Event template for details on the Common Base Event template. Note that the naming convention for this is the fully qualified component name with the extension “.event.xml”. For example, a template that applies to package com.ibm.compXYZ would be called “com.ibm.compXYZ.event.xml”

Sample logger.properties file

In the following sample, event factory com.ibm.xyz.MyEventFactory will be used by any loggers in the com.ibm.websphere.abc package or any sub-packages which do not have their own configuration file.
com.ibm.websphere.abc.eventfactory=com.ibm.xyz.MyEventFactory



Related information
Configuring logging properties for an application
Sample Common Base Event template
Log level settings

Reference 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/rtrb_configcbeapps.html

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