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

Configuring logging properties using the administrative console

Use this task to browse or change the properties of Java logging.

Why and when to perform this task

Before applications can log diagnostic information, you need to specify how you want the server to handle log output, and what level of logging you require. Using the administrative console, you can enable or disable a particular log, specify where log files are stored and how many log files are kept, specify the level of detail in a log, and specify a format for log output. You can also set a log level for each logger.

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 propagate the change to their children, as necessary.

To configure loggers and log handlers for use by Java logging, use the administrative console to complete the following steps:

Steps for this task

  1. Set the output properties for a log:
    1. In the navigation pane, click Servers > Application Servers.
    2. Click the name of the server that you want to work with.
    3. Under Troubleshooting, click Logging and tracing.
    4. Click the name of a system log to configure (Diagnostic Trace, JVM Logs, Process Logs or IBM Service Logs).
    5. To make a static change to the system log configuration, click the Configuration tab. To change the configuration dynamically, click the Runtime tab.
    6. Change the properties for the selected log according to your needs.
    7. Click Apply.
    8. Click OK.
  2. Set the logging levels for your logs.
    1. In the navigation pane, click Servers > Application Servers.
    2. Click the name of the server that you want to work with.
    3. Under Troubleshooting, click Logging and tracing.
    4. Click Change Log Detail levels.
    5. To make a static change to the configuration, click the Configuration tab. A list of well-known components, packages, and groups is displayed. To change the configuration dynamically, click the Runtime tab. The list of components, packages, and groups displays all the components that are currently registered on the running server.
    6. Select a component, package, or group to set a logging level. See Log level settings for a description of each level.
    7. Click Apply.
    8. Click OK.
  3. To have static configuration changes take effect, stop then restart the Application Server.



Sub-topics
Log level settings
HTTP error and NCSA access log settings
Task 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/ttrb_configjavalog.html

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