Version: 5.1.3
19 Logging
(require unstable/logging) |
This module provides tools for logging.
This library is unstable;
compatibility will not be maintained.
See Unstable: May Change Without Warning for more information.
| |||||||||||||||||||||
port : output-port? | |||||||||||||||||||||
proc : (-> any) | |||||||||||||||||||||
level : (or/c 'fatal 'error 'warning 'info 'debug) = 'info |
Runs proc, outputting any logging of level level or higher to
port. Returns whatever proc returns.
Example: | |||||||||
|
| |||||||||||||||||||||
| |||||||||||||||||||||
proc : (-> any) | |||||||||||||||||||||
level : (or/c 'fatal 'error 'warning 'info 'debug) = 'info |
Runs proc, calling interceptor on any log message of level
level or higher. interceptor receives the entire log vectors
(see Receiving Logged Events)
as arguments. Returns whatever proc returns.
Example: | ||||||||||||||
|