chickadee » phricken » logger-port

loggerparameter
logger-impl type req #!rest msgprocedure
logger-portparameter

The logger parameter specifies a logging procedure conforming to the logger-impl interface.

The default logger implementation logs a formatted message to (logger-port), by default (current-error-port), or skips logging if the port is #f. No locking is performed. Seek to EOF is not done on write because some ports do not support seeking; therefore, files should be opened in append mode, as in (open-output-file file #:append).

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.