Configure 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 WAS class path, or the context class path.
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.
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.xmlIn the following sample, event factory...
com.ibm.xyz.MyEventFactory...will be used by any loggers in the package...
com.ibm.websphere.abc...or any sub-packages which do not have their own configuration file...
com.ibm.websphere.abc.eventfactory=com.ibm.xyz.MyEventFactory
Related Information
Configure logging properties for an application
Sample Common Base Event template
Log level settings