Skip to main content

Module logging

Module logging 

Source

Constants§

FILE_PREFIX
KEPT_FILES
LOG_DIR_ENV

Functions§

file_writer
filter
A non-blank RUST_LOG replaces the defaults instead of extending them, because a bare level in it would only replace the error catch-all and leave tower_http=debug in force.
init
Logs to a daily file under SECOND_BRAIN_LOG_DIR when it is set, because launchd never rotates the stdout and stderr files it was given; otherwise to stderr.
log_dir