keen/log

Source
This is a standard module and does not need to be explicitly imported.
log-level enum
debug
info
warn
error
Log severity. The log handler can use this any way it wants. The default log handler just prints the level at the beginning of each log.
logged record
level log-level
message string
Represents a single call to log.
log-handler alias void shared(logged)
Function that handles a log message. For example, this might write it to the console.
log[t] void(value t) (json, t) to
log[t, u] void(a t, b u) (json, t) to, (json, u) to
log[t, u, v] void(a t, b u, c v) (json, t) to, (json, u) to, (json, v) to
log[t, u, v, w] void(a t, b u, c v, d w) (json, t) to, (json, u) to, (json, v) to, (json, w) to
log[t, u, v, w, x] void(a t, b u, c v, d w, e x) (json, t) to, (json, u) to, (json, v) to, (json, w) to, (json, x) to
log-error[t] void(value t) (json, t) to
log-with-level void(level log-level, message string)
Sends a log to the current log handler. By default, this means the message is logged to the console.
temp-log-handler record
handler void shared(logged)
with-block[t] t(_ temp-log-handler, _ t mut(void))
Temporarily replaces the log handler.
get-log-handler void shared(logged)() global
This gets the current log handler. This is useful if you want to use a temp-log-handler to add a little extra information, then fall back to the original log handler.