contract
:
the result of the thunk
a hash of all events logged to L during the thunk, organized by log level.
The optional arguments help filter the log events. If #:level is given, then the returned hash only contains events for the given level and higher levels. If #:topic is given, then the returned hash only contains events with the given topic. The default level is 'info and the default topic is the value of (logger-name L).
See also: with-intercepted-logging
procedure
( make-log-interceptor logger)→log-interceptor/c
logger:logger?
> f-logs'#hasheq((debug . ())
(error . ())
(fatal . ())
(info
.
("ricardo: f spotted a ricardo" "ricardo: f spotted a ricardo"))
(warning . ()))