Use this task to specify that the monitoring function publish Common
Base Events to a logger.
Why and when to perform this task
Before WebSphere
® Process Server applications can log monitored
events, you must specify the service component event points that you wish
to monitor, what level of detail you require for each event, and format of
the output used to publish the events to the logs. Using the administrative
console, you can:
- Enable or disable a particular event log.
- Specify the level of detail in a log.
- Specify where log files are stored, how many log files are kept, and a
format for log output.
You can change the log configuration statically or dynamically.
Static configuration changes affect applications when you start or restart
the application server. Dynamic or run time configuration changes apply immediately.
When
a log is created, the level value for that log is set from the configuration
data. If no configuration data is available for a particular log name, the
level for that log is obtained from the parent of the log. If no configuration
data exists for the parent log, the parent of that log is checked, and so
on up the tree, until a log with a non-null level value is found. When you
change the level of a log, the change is propagated to the children of the
log, which recursively propagates the change to their children, as necessary.
Steps for this task
- Enable logging and set the output properties for a log:
- In the navigation pane, click Servers > Application Servers.
- Click the name of the server that you want to work with.
- Under Troubleshooting, click Logging and tracing.
- Click Change Log Detail levels.
- The list of components, packages, and groups displays all the components
that are currently registered on the running server; only process server events
that have been invoked at least once will appear on this list. All process
server components with event points that can be logged are listed under one
of the components that start with the name WBILocationMonitor.LOG.
- To select events for a static change to the configuration, click the Configuration tab.
- To select events for a dynamic change to the configuration, click
the Runtime tab.
- Select the event or group of events that you wish to log.
- Set the logging level for each event or group of events.
Note: Only the levels FINE, FINER, and FINEST are valid for CEI event
logging.
- Click Apply.
- Click OK.
- To have static configuration changes take effect, stop then restart
the process server.
Result
By default, the loggers will publish their output to a file called
trace.log, located in the
install_root/profiles/profile_name/logs/server_name folder.