Next: , Previous: logging logger, Up: Top


12 (logging port-log)

12.1 Overview

This module defines a log handler that writes to an arbitrary port of the user's choice. Uses of this handler could include:

12.2 Usage

— Class: <port-log>

This is a log handler which writes logs to a user-provided port.

Keywords recognized by <port-log> on creation are:

#:port
This is the port to which the log handler will write.
#:formatter
Allows the user to provide a function to use as the log formatter for this handler. See logging logger <log-handler>, for details.

Example of creating a <port-log>:

           (make <port-log> #:port (current-error-port))