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 ESB 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.
To
configure logging properties for a server or cluster, use the administrative
console to complete the following steps:
Steps for this task
- Display the detail settings page for the server or cluster.
Option |
Description |
For a server |
- In the navigation pane, click .
- In the content pane, click the name of the server.
|
For a cluster |
- In the navigation pane, click .
- In the content pane, click the name of the cluster.
|
- Under Troubleshooting, click Logging and tracing.
- Under Additional Properties, 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 common base events
that have been invoked at least once appear on this list.
- To make static changes to the configuration, click the Configuration tab.
- To make dynamic changes 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 OK.
- To have static configuration changes take effect, stop then restart
the server or cluster.
Result
By default, the output is logged to a file called trace.log, located
in the
install_root/profiles/
profile_name/logs/
server-cluster_name folder.