chickadee » phricken » logger-port

loggerparameter
type req #!rest msgprocedure
logger-port #!optional current-error-portparameter

The default logger implementation logs a formatted message to (logger-port), or skips logging if the port is #f. No locking is performed. Seeking to end is performed prior to writing, but it is recommended any file be opened in #:append mode.

It is legal for REQ to be #f if a request has not yet been created--for example, upon early error, or initial connect.

TYPE can be any symbol; current types are 'connect, 'access, 'error, 'redirect. By default, types are not treated specially, just displayed in the log message.

The logger parameter can be overridden to use your own logging procedure, as long as it implements the interface above.