Variant of the chain handler for doing standard logging.
Don't use on fine furniture.
Output is a variant of the common logfile format.
The common logfile format is as follows:
remotehost rfc931 authuser [date] "request" status bytes
- remotehost
- Remote hostname (or IP number if DNS hostname is not available, or if DNSLookup is Off.
- rfc931
- The remote logname of the user.
- authuser
- The username as which the user has authenticated himself.
- [date]
- Date and time of the request.
- "request"
- The request line exactly as it came from the client.
- status
- The HTTP status code returned to the client.
- bytes
- The content-length of the document transferred.
- "referrer" (optional)
- the referring url
- "user agent" (optional)
- "The user agent making the request
Additional Configuration options:
- logFile
- The name of the file to write the logs to.
- flush
- The number of requests between flushes to the file
If the logFile is removed, the server creates a new one.
Thus logs may be truncated by periodically moving them to
another name (at least on unix).
See the
LogHandler handler for generating logs whose
contents are configurable.
author: Stephen Uhler version: 1.15, 00/12/11 |