(html (head (title "sph-lib (sph log)") (link (@ (rel "stylesheet") (type "text/css") (href "/css/sph.css"))) (meta (@ (name "viewport") (content "width=device-width,initial-scale=1"))) #f) (body () (div (@ (class top)) (nav (a (@ (href "/")) "start") ", " (a (@ (href "/feed.xml")) "feed")) "") (div (@ (class "middle")) (div (@ (class mtime) (title "last modification time of the current page")) "2023-04-05") (section (h1 "(sph log)") (div (p "diagnostic logging with routing by category to none or many configurable output-targets") (p "part of " (a (@ (href "../../sph-lib.html")) "sph-lib")) (#f (section (@ (class "library-name")) (h1 "module name") (p "(sph log)")) (section (@ (class "library-exports")) (h1 "exported bindings") (div (div (@ (class "doc-bindings")) (div (@ (id "doc-b-" "log-default-formatter") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "log-default-formatter") " " (span (@ (class "first-sig")) "categories arguments ->")) (div (@ (class "rest-sig")) (div "(symbol ...) (any ...) ->")) (div (@ (class "description")) (("categories is the list of symbol names for which the log-route has matched")))) (div (@ (id "doc-b-" "log-default-route") (class "doc-b")) (div (span (@ (class "type")) "variable") ": " (span (@ (class "name")) "log-default-route")) "" "") (div (@ (id "doc-b-" "log-message") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "log-message") " " (span (@ (class "first-sig")) "categories arguments ... ->")) (div (@ (class "rest-sig")) (div "symbol/(symbol ...) any ... ->")) (div (@ (class "description")) (("filters log-routes and calls any matching log-route formatter with arguments." (br) "categories can be a tree-like list with prefixed symbols and/or/not." (br) "log-route: #(symbol/(symbol ...) procedure:{list list ->} (port:output-port ...))")))) (div (@ (id "doc-b-" "log-routes") (class "doc-b")) (div (span (@ (class "type")) "variable") ": " (span (@ (class "name")) "log-routes")) "" "") (div (@ (id "doc-b-" "log-routes-set!") (class "doc-b")) (div (span (@ (class "type")) "procedure") ": " (span (@ (class "name")) "log-routes-set!") " " (span (@ (class "first-sig")) "a ->")) "" "") (div (@ (id "doc-b-" "sph-log-description") (class "doc-b")) (div (span (@ (class "type")) "variable") ": " (span (@ (class "name")) "sph-log-description")) "" "")))))))) ()))