pub fn init(
log_level_from_settings: &str,
log_file_path: Option<&Path>,
) -> Result<()>Expand description
Initialise the program logger using the fern logging library with colourised output.
The user can specify their preferred logging level via the settings.toml file (defaulting to
info if not present) or with the MUSE2_LOG_LEVEL environment variable. If both are provided,
the environment variable takes precedence.
Possible log level options are:
errorwarninfodebugtrace
ยงArguments
log_level_from_settings: The log level specified insettings.tomllog_file_path: The location to save log files (if Some, log files will be created)