LogOptions protocol option [LOPT]

Specifies the types of messages that are recorded in the log where the database server writes information about web requests.

Usage

HTTP, HTTPS

Values

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

Default

ALL

Remarks

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:

  • NONE   Log nothing.

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

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

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

  • ALL   Log all requests.

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

  • C200   OK

  • C400   Bad request

  • C401   Unauthorized

  • C403   Forbidden

  • C404   Not found

  • C408   Request timeout

  • C501   Not implemented

  • C503   Service unavailable

In addition, the following keywords may be used to obtain more information about the logged messages:

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

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

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

See also