Show TOC

Logging Additional InformationLocate this document in the navigation structure

Use

You can configure the HTTP Provider Service to log information in the HTTP access log file in the SAP-proprietary log format (not in the standard Common Log File format). With this option, you can log additional information about the type of the requested resource, the time the server generated the response for, or the value of a specific HTTP header from the request.

Procedure

Use the SAP NetWeaver Administrator tool to configure the logging of additional information:

  1. To modify the properties of the HTTP Provider Service using the SAP NetWeaver Administrator, use the Java System Properties function. For more information, see Java System Properties .

  2. In the Services tab, select HTTP Provider Service.

    On the Extended Details tab page, a list of all service properties is displayed.

  3. Select the property that you want to modify and enter the new value in the Custom Value field.

    You can configure the following log behavior using the specified properties:

    Behavior

    Property and Value

    Result

    The response time

    Set the LogResponseTime property to true .

    Adds the time the server generated the response for to the HTTP access log file. The system measures the response time from the moment of parsing the request to the moment the processing thread ends.

    You can view the traces in the \j2ee\cluster\server0\log\system

    \httpaccess\responses.0.trc file.

    The value of a specific HTTP header if it is present in the request

    Specify the name of this header as a value of the LogHeaderValue property. The value of the property is not case-sensitive.

    Adds the value of the specified header to the HTTP access log file.

    If you assign the value test to the LogHeaderValue property, and the HTTP request contains a header with the name test and value testvalue , then you find the testvalue added to the log entry for this request in the corresponding log file.

    If the special X-CorrelationID header is set as the value of this property, HTTP requests that contain this header are logged in a different trace file for SMD debugging purposes. For more information, see HTTP Access Logging Specifics When Using Solution Manager Diagnostics .

    The type of the requested resource

    Set the LogIsStatic property to true .

    Adds the following information to the usual information being logged for the corresponding HTTP request:

    • s[t] if the requested resource is a static file;

    • s[f] if the requested resource is a dynamic one (such as a servlet, or JSP).

    All HTTP headers of the requests and responses

    Set the LogRequestResponseHeaders property to true .

    Logs information about all headers contained in the request and response.

    The requests with response times above a given time period

    To specify if additional traces are written to the default trace file, assign the appropriate value to the TraceResponseTimeAbove property. The value (set in milliseconds) can be equal to -1 or higher than -1.

    If the value of the TraceResponseTimeAbove property is equal to -1, there are no additional traces.

    If the value of the TraceResponseTimeAbove property is higher than -1, additional traces are written to the default trace file only for requests that have response times in milliseconds equal to, or higher than the specified value.

    You can view the additional traces in the \j2ee\cluster\server0\log

    \defaultTrace.0.trc file.

    1. Choose Save Changes .