set_log_level
anomaly_match.utils.set_log_level
¶
Logging level configuration.
set_log_level(log_level, cfg, log_to_file=True)
¶
Set the log level for the logger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log_level
|
str
|
The log level to set. Options are 'TRACE', 'DEBUG', 'INFO', 'SUCCESS', 'WARNING', 'ERROR', 'CRITICAL'. |
required |
cfg
|
DotMap
|
The configuration object. |
required |
log_to_file
|
bool
|
If True, logs will be saved to a file. Default is True. |
True
|