9.2
5 Logging
| (require ledum/define/log) | package: ledum-definers |
This module provides logging features mainly across ISA behavioral specification and devices emulation layer.
procedure
(log-ledum-fatal msg) → void?
msg : string? (log-ledum-fatal fmt v ...) → void? fmt : string? v : any/c (log-ledum-error msg) → void? msg : string? (log-ledum-error fmt v ...) → void? fmt : string? v : any/c (log-ledum-warning msg) → void? msg : string? (log-ledum-warning fmt v ...) → void? fmt : string? v : any/c (log-ledum-info msg) → void? msg : string? (log-ledum-info fmt v ...) → void? fmt : string? v : any/c (log-ledum-debug msg) → void? msg : string? (log-ledum-debug fmt v ...) → void? fmt : string? v : any/c
These behave like log-fatal, log-error,
log-warning, log-info and log-debug. The
topic is however set to 'ledum and the surrounding module
uses a specific logger without parent to handle the log messages flow
separately from any other log sources and log receivers.
syntax
(capture-ledum-log maybe-to body ...)
maybe-to =
| #:to port
port : output-port?
Wraps body with log receiver for the custom logger with
'ledum topic. Should be used by the emulator as the
outermost layer.
parameter
(ledum-log-colors color) → void? color : boolean?
If #t the output is colorized using ANSI/ECMA sequences
based on message log level.