pub fn init(
log_level_from_settings: Option<&str>,
output_path: &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:
error
warn
info
debug
trace
ยงArguments
log_level_from_settings
: The log level specified insettings.toml
output_path
: The output path for the simulation