keen/log
SourceThis is a standard module
and does not need to be explicitly imported.
log-level enumdebuginfowarnerrorLog 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.
log-handler alias void shared(logged)Function that handles a log message. For example, this might write it to the console.
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) tolog-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.
get-log-handler void shared(logged)() globalThis 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.