8.16.0.1
logman
(require logman) | package: logman |
logman is a package with small formatting additions to base logging. In particular, it specifies the message’s level and the time it was output. Note that it uses date-display-format for its time formatting, which is recommended to be set to 'iso-8601.
procedure
(log-warning message) → void?
message : any/c
Example:
> (parameterize ([date-display-format 'iso-8601]) (with-logging-to-port (current-output-port) (lambda () (log-debug "debug information") (log-info "regular information") (log-warning "warnings") (log-error "errors") (log-fatal "fatal errors")) 'debug))
[DEBUG] 2025-01-20T13:08:20 - debug information
[INFO ] 2025-01-20T13:08:20 - regular information
[WARN ] 2025-01-20T13:08:20 - warnings
[ERROR] 2025-01-20T13:08:20 - errors
[FATAL] 2025-01-20T13:08:20 - fatal errors