Provide with-intercepted-logging.
This commit is contained in:
parent
fc705c6e29
commit
b86d759b62
|
@ -43,7 +43,14 @@
|
|||
port))
|
||||
proc #:level level))
|
||||
|
||||
(provide/contract [with-logging-to-port
|
||||
(define level/c (or/c 'fatal 'error 'warning 'info 'debug))
|
||||
|
||||
(provide/contract [with-intercepted-logging
|
||||
(->* ((-> (vector/c level/c string? any/c) any)
|
||||
(-> any))
|
||||
(#:level level/c)
|
||||
any)]
|
||||
[with-logging-to-port
|
||||
(->* (output-port? (-> any))
|
||||
(#:level (or/c 'fatal 'error 'warning 'info 'debug))
|
||||
(#:level level/c)
|
||||
any)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user