LogOptions Communication Parameter [LOPT]

Controls which categories of messages are logged.

Usage

HTTP, HTTPS

Values

NONE, OK, INFO, ERRORS, ALL, status-codes, REQHDRS, RESHDRS, HEADERS

Default

ALL

Description

The values available include keywords that select particular types of messages, and HTTP status codes. Multiple values may be specified, separated by commas.

The following keywords control which categories of messages are logged:

  • Log nothing.

  • Log requests that complete successfully (20x HTTP status codes).

  • Log requests that return over or not modified status codes (30x HTTP status codes).

  • Log all errors (40x and 50x HTTP status codes)

  • Log all requests.

The following common HTTP status codes are also available. They can be used to log requests that return particular status codes:

  • OK

  • Bad request

  • Unauthorized

  • Forbidden

  • Not found

  • Request timeout

  • Not implemented

  • Service unavailable

In addition, you can use these keywords to obtain more information about the logged messages:

  • When logging requests, also write request headers to the log file.

  • When logging requests, also write response headers to the log file.

  • When logging requests, also write both request and response headers to the log file (same as REQHDRS,RESHDRS).