java.util.logging -- Java logging programming interface
The java.util.logging.Logger class provides a variety of methods with which data can be logged.
In the WebSphere® Application Server, when using basic log and trace mode, the Java™ logging API (java.util.logging) automatically creates Common Base Events for events that are logged at the WsLevel.DETAIL level or later (including WsLevel.DETAIL, Level.CONFIG, Level.INFO, WsLevel.AUDIT, Level.WARNING, Level.SEVERE, and WsLevel.FATAL). These Common Base Events are created using the event factory that is associated with the logger to which the message is logged. If no event factory is specified, WebSphere Application Server uses a default event factory which automatically fills in WebSphere Application Server-specific information.
- config
- info
- warning
- severe
- log: All variants except log(LogRecord) when used with the WsLevel.DETAIL level or more severe levels
- logp: When used with the WsLevel.DETAIL level or more severe levels
- logrb: When used with the WsLevel.DETAIL level or more severe levels
The following diagram illustrates how application code can log Common Base Events:

- Application code invokes the named logger (WsLevel.DETAIL or later) with event-specific data.
- The logger creates a Common Base Event using the createCommonBaseEvent method on the event factory that is associated with the logger.
- The logger creates a Common Base Event using the event factory associated to the logger.
- The logger wraps the common base event in a CommonBaseEventLogRecord record, and adds event-specific data.
- The logger calls the Common Base Event complete method.
- The Common Base Event invokes the ContentHandler completeEvent method.
- The content handler adds XML template data to the Common Base Event (including for example, the component name). Not all content handlers support templates.
- The content handler adds runtime data to the Common Base Event (including for example, the current thread name).
- The logger passes the CommonBaseEventLogRecord record to the handlers.
- The handlers format data and write to the output device.