3 Logging
(require unlike-assets/logging) | |
package: unlike-assets-lib |
The behavior of unlike-assets is difficult to trace without logging, hence this module. You should use this module with your own build process to ensure consistent output, especially when using the CLI.
3.1 Basic Interface
value
procedure
procedure
message-fmt : string? v : any/c
procedure
message-fmt : string? v : any/c
procedure
message-fmt : string? v : any/c
procedure
message-fmt : string? v : any/c
procedure
message-fmt : string? v : any/c
(<log level (apply format (cons message v)) (current-continuation-marks))
3.2 Building Reports
procedure
(with-report proc) →
any/c dict? proc : (-> any/c)
Returns the value returned from proc, and a dictionary holding counts for the number of each event encountered during evaluation of proc. If no events are captured for a level, the dictionary will still hold the level as a key with a value of 0.
procedure
(with-report/void proc) → void?
proc : (-> any/c)
procedure
(with-report/counts proc) → dict?
proc : (-> any/c)
3.3 Display Parameters
value
show-debug? : (parameter/c boolean?) = #f
value
show-colors? : (parameter/c boolean?) = #f
value
show-prefix? : (parameter/c boolean?) = #f
value
show-all-events? : (parameter/c boolean?) = #f
Combined with (show-debug? #t), this can be extremely noisy. Use only if detailed feedback from Racket internals matter for your purposes.
value
show-level? : (parameter/c boolean?) = #f
value
error-port-levels : (parameter/c (listof log-level/c))
= '(fatal error)
value
prescribed-prefix : (parameter/c string?) = ""
value
format-clear : (parameter/c (-> clear/c any/c)) = identity
value
format-unclear : (parameter/c (-> unclear/c any/c)) = identity