LogFormat protocol option [LF]

Controls the format of messages written to the log file and which fields appear in them.

Usage

HTTP, HTTPS

Values

Format-string

Default

@T - @W - @I - @P - "@M @U @V" - @R - @L - @E

Remarks

This parameter controls the format of messages written to the log file and which fields appear in them. If they appear in the string, the current values are substituted for the following codes as each message is written.

  • @@   The @ character.

  • @B   Date and time that processing of the request started, unless the request could not be queued due to an error.

  • @C   Date and time that the client connected.

  • @D   Name of the database associated with the request.

  • @E   Text of the error message, if an error occurred.

  • @F   Date and time that processing of the request finished.

  • @I   IP address of the client.

  • @L   Length of the response, in bytes, including headers and body.

  • @M   HTTP request method.

  • @P   Listener port associated with the request.

  • @Q   Date and time that the request was queued for processing, unless the request could not be queued due to an error.

  • @R   Status code and description of the HTTP response.

  • @S   HTTP status code.

  • @T   Date and time that the current log entry was written.

  • @U   Requested URI.

  • @V   Requested HTTP version.

  • @W   Time taken to process the request (@F - @B), or 0.000 if the request was not processed due to an error.

See also