Provide with-intercepted-logging.

original commit: b86d759b626088158b2da492dc2c3ecadbabdff9
This commit is contained in:
Vincent St-Amour 2011-06-01 15:39:59 -04:00
parent 5de906251f
commit addca29b35

View File

@ -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)])