Expand description
The log
module provides initialisation and configuration of the application’s logging system.
This module sets up logging with various levels (error, warn, info, debug, trace) and optional colourisation based on terminal support. It also allows configuration of the log level through environment variables.
Constants§
- DEFAULT_
LOG_ 🔒LEVEL - The default log level for the program.
- LOG_
ERROR_ 🔒FILE_ NAME - The file name for the log file containing warnings and error messages
- LOG_
INFO_ 🔒FILE_ NAME - The file name for the log file containing messages about the ordinary operation of MUSE 2.0
Functions§
- init
- Initialise the program logger using the
fern
logging library with colourised output. - write_
log 🔒 - Write to the log in the format we want for MUSE 2.0
- write_
log_ 🔒colour - Write to the log with optional colours
- write_
log_ 🔒plain - Write to the log with no colours