2023-04-05

(sph log)

diagnostic logging with routing by category to none or many configurable output-targets

part of sph-lib

module name

(sph log)

exported bindings

procedure: log-default-formatter categories arguments ->
(symbol ...) (any ...) ->
categories is the list of symbol names for which the log-route has matched
variable: log-default-route
procedure: log-message categories arguments ... ->
symbol/(symbol ...) any ... ->
filters log-routes and calls any matching log-route formatter with arguments.
categories can be a tree-like list with prefixed symbols and/or/not.
log-route: #(symbol/(symbol ...) procedure:{list list ->} (port:output-port ...))
variable: log-routes
procedure: log-routes-set! a ->
variable: sph-log-description