Guile Library

(logging port-log)

Overview

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

Usage

<port-log>
[Class]

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))