139 lines
5.7 KiB
HTML
139 lines
5.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
|
|
|
<title>Configure logging for internal Web server HTTP transport</title>
|
|
</head>
|
|
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
<h4><a name="acshttperr"></a>Configure logging for internal Web server HTTP transport</h4>
|
|
|
|
<p>An independent logging mechanism is available to monitor the HTTP transport. To configure logging for internal HTTP transports, add these custom properties to one of the HTTP transports in your Web container:</p>
|
|
|
|
<table cellspacing="2" cellpadding="2" border="1">
|
|
<tr>
|
|
<th id="col1" width="110">Property name</th>
|
|
<th id="col2" width="110">Valid Values</th>
|
|
<th id="col3" width="140">Description</th>
|
|
<th id="col4" width="165">Default</th>
|
|
<th id="col5" width="95">Scope</th>
|
|
</tr>
|
|
<tr>
|
|
<td headers="col1" width="110">ErrorLogDisable</td>
|
|
<td headers="col2" width="110">true/false</td>
|
|
<td headers="col3" width="140">Enable or disable logging</td>
|
|
<td headers="col4" width="165">true (logging disabled)</td>
|
|
<td headers="col5" width="95">Virtual/Global</td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="col1" width="110">ErrorLog</td>
|
|
<td headers="col2" width="110"><em>filename</em></td>
|
|
<td headers="col3" width="140">The location of the log file</td>
|
|
<td headers="col4" width="165">logs/<em>app_server</em>/http.log<sup>1</sup></td>
|
|
<td headers="col5" width="95"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td headers="col1" width="110">LogLevel</td>
|
|
<td headers="col2" width="110">
|
|
<ul>
|
|
<li>debug <sup>2</sup></li>
|
|
<li>info</li>
|
|
<li>warn</li>
|
|
<li>error</li>
|
|
<li>crit</li>
|
|
</ul>
|
|
</td>
|
|
<td headers="col3" width="140">The level of messages to log</td>
|
|
<td headers="col4" width="165">warn</td>
|
|
<td headers="col5" width="95">Virtual/Global</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p><sup>1</sup> Relative paths are qualified from the root directory of your instance. For example, for the application server myServer in the instance myInstance of WebSphere Application Server - Express, the default location for the log file is /QIBM/UserData/WebASE51/ASE/myInstance/logs/myServer/http.log.</p>
|
|
<p><sup>2</sup> Each level also logs messages for the levels below it. For example, the warn level logs warn, error, and crit messages. The debug level logs all messages.</p>
|
|
|
|
|
|
<p><strong>Enable HTTP transport logging</strong></p>
|
|
|
|
<p>To enable HTTP transport logging, follow these steps:</p>
|
|
|
|
<ol>
|
|
<li><a href="acstart.htm">Start the administrative console</a>.</li>
|
|
|
|
<li>In the topology tree, expand <strong>Servers</strong> and click <strong>Application Servers</strong>.</li>
|
|
|
|
<li>Click the name of the application server for which you want to disable HTTP transport logging.</li>
|
|
|
|
<li>On the application server page, click <strong>Web Container</strong> under <strong>Additional Properties</strong>.</li>
|
|
|
|
<li>On the <strong>Web Container</strong> page, click <strong>HTTP Transports</strong>.</li>
|
|
|
|
<li>On the <strong>HTTP Transports</strong> page, select one of the HTTP transports.</li>
|
|
|
|
<li>On the transport page, click <strong>Custom Properties</strong>.</li>
|
|
|
|
<li>To enable error logging, add the ErrorLogDisable custom property to one of the HTTP transports in your Web container and set the value to <strong>false</strong>:
|
|
<ol type="a">
|
|
<li>Click <strong>New</strong>.</li>
|
|
<li>For the property name, specify <tt>ErrorLogDisable</tt>.</li>
|
|
<li>For the value, specify <tt>false</tt>.</li>
|
|
<li>Click <strong>OK</strong>.</li>
|
|
</ol></li>
|
|
|
|
<li>(Optional) Specify the ErrorLog custom property:
|
|
<ol type="a">
|
|
<li>Click <strong>New</strong>.</li>
|
|
<li>For the property name, specify <tt>ErrorLog</tt>.</li>
|
|
<li>For the value, specify a file name.</li>
|
|
<li>Click <strong>OK</strong>.</li>
|
|
</ol></li>
|
|
|
|
<li>(Optional) Specify the LogLevel custom property:
|
|
<ol type="a">
|
|
<li>Click <strong>New</strong>.</li>
|
|
<li>For the property name, specify <tt>LogLevel</tt>.</li>
|
|
<li>For the value, specify the level of logging you want to record.</li>
|
|
<li>Click <strong>OK</strong>.</li>
|
|
</ol>
|
|
<p><strong>Note:</strong> If you plan to be use error logging for multiple HTTP transports on a single HTTP server, specify a unique name for each transport's error log file to avoid having data for one transport overwritten.</p></li>
|
|
|
|
<li><a href="acsave.htm">Save the configuration</a>.</li>
|
|
|
|
<li>Restart the application server.</li>
|
|
</ol>
|
|
|
|
<p><strong>Disable HTTP transport logging</strong></p>
|
|
|
|
<p>To disable HTTP transport logging, follow these steps:</p>
|
|
|
|
<ol>
|
|
<li><a href="acstart.htm">Start the administrative console</a>.</li>
|
|
|
|
<li>In the topology tree, expand <strong>Servers</strong> and click <strong>Application Servers</strong>.</li>
|
|
|
|
<li>Click the name of the application server for which you want to disable HTTP transport logging.</li>
|
|
|
|
<li>On the application server page, click <strong>Web Container</strong> under <strong>Additional Properties</strong>.</li>
|
|
|
|
<li>On the <strong>Web Container</strong> page, click <strong>HTTP Transports</strong>.</li>
|
|
|
|
<li>On the <strong>HTTP Transports</strong> page, click the transport that includes the ErrorLogDisable property.</li>
|
|
|
|
<li>On the transport page, click <strong>Custom Properties</strong>.</li>
|
|
|
|
<li>Click the ErrorLogDisable custom property.</li>
|
|
|
|
<li>On the property page, specify a valu of <tt>true</tt> for the ErrorLogDisable property.</li>
|
|
|
|
<li><a href="acsave.htm">Save the configuration</a>.</li>
|
|
|
|
<li>Restart the application server.</li>
|
|
</ol>
|
|
|
|
</body>
|
|
</html> |