Provide with-intercepted-logging.
original commit: b86d759b626088158b2da492dc2c3ecadbabdff9
This commit is contained in:
parent
5de906251f
commit
addca29b35
|
@ -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