sitefox.logging

Functions to help with writing log files.

bail

(bail & msgs)

Print a message and then kill the current process.

bind-console-to-file

(bind-console-to-file)

This is deprecated in favour of tracebacks/install-traceback-handler. Rebinds console.log and console.error so that they write to ./logs/error.log as well as stdout.

flush-bound-console

(flush-bound-console cb)

This is deprecated in favour of tracebacks/install-traceback-handler.

log

(log file-path & args)

Console log with built-in file and time reference.

now

(now)