Function pmcore::logger::setup_log

source ยท
pub fn setup_log(settings: &Settings) -> Result<()>
Expand description

Setup logging for the library

This function sets up logging for the library. It uses the tracing crate, and the tracing-subscriber crate for formatting.

The log level is defined in the configuration file, and defaults to INFO.

If log_out is specifified in the configuration file, a log file is created with the specified name.

Additionally, if the tui option is set to true, the log messages are also written to the TUI.

If not, the log messages are written to stdout.