log_level¶
log_level ¶
LogLevel ¶
Bases: StrEnum
Logical log levels for the CLI.
Includes a custom TRACE (more verbose than DEBUG) and QUIET (suppresses all output beyond CRITICAL).
Source code in source/src/imarina_load_researchers/core/log_level.py
parse classmethod ¶
Parse case-insensitively; returns None if value is falsy.
Source code in source/src/imarina_load_researchers/core/log_level.py
get_default_log_level classmethod ¶
Returns the log level used when none is configured.
Returns:
| Name | Type | Description |
|---|---|---|
LogLevel | LogLevel |
|
to_logging_level ¶
Converts this logical LogLevel into a stdlib logging level number.
TRACE maps to 0 (below logging.DEBUG, see core/log_utils.py's custom TRACE level) and QUIET maps to logging.CRITICAL + 10, so it suppresses even CRITICAL records.
Returns:
| Name | Type | Description |
|---|---|---|
int | int | The equivalent stdlib |