This module defines a log handler that writes to an arbitrary port of the user's choice. Uses of this handler could include:
Sending logs across a socket to a network log collector.
Sending logs to the screen
Sending logs to a file
Collecting logs in memory in a string port for later use
<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))