IBM Support

About the Rational Web Platform error logging

Question & Answer


Question

Where is the error logging defined and how can I change the logging levels for the IBM® Rational Web Platform (RWP) server?

Answer

Error logging is enabled by default within the Rational Web Platform.

The RWP configuration file, rwp.conf in 2003.06.00 or httpd.conf in 7.0 and later, contains the parameter to set the logging level.

The configuration file is located

2003.06.00: in <RWP install directory>/common/rwp/conf/

7.0: <RWP install directory>/common/rwp/IHS/conf/

The default error log is <RWP install directory>/logs/error.log, which is specified by ErrorLog under the Logging-related directives in the configuration file.

You can change this path by specifying a different location for the error log to get created.


To configure the logging levels of the RWP server, an Administrator must edit the configuration file and change the LogLevel.

This section is shown below where LogLevel is set to warn by default; LogLevel warn.

Note: To configure this logging level correctly, you should review the different logging levels detailed in technote 1118711.

# --------------------------
# Logging-related directives
# --------------------------

#
# ErrorLog: The location of the error log file.
#
#
# Rotated: This is done by piping the error log to a program.
# Below we pipe it to the rotatelogs utility,
# which writes files of the form C:/Program Files/Rational/common/rwp/logs/error.log.<number>.
# The 86400 is the time interval in seconds (1 day) before rotatelogs
decides to
# start a new error.log.<number> file.
# If you want to change the location of the error log, change the first argument to rotatelogs.
# If you want to change the rotation period, change the second argument to rotatelogs.
#
ErrorLog "|\"C:/Program Files/Rational/common/rwp/bin/rotatelogs.exe\" \"C:/Program Files/Rational/common/rwp/logs/error.log\" 86400"

#
# Not rotated: If you want a single "error.log" file (not rotated periodically)
# then comment out the above and comment in this:
#
#ErrorLog logs/error.log

#
# LogLevel: Control the number of messages logged to the error.log.
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
#
LogLevel warn

#
# Access log: Logs all HTTP requests
#

[{"Product":{"code":"SSCTQH","label":"Rational Common Components"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Rational Web Platform","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"2003.06.00;7.0;7.0.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
16 June 2018

UID

swg21119209