logging.loader ¶
Functions:
| Name | Description |
|---|---|
load | Load logging configuration from file or dict. |
load_conf | Load logging configuration from conf file. |
load_default | Load default logging configuration. |
load_dict | Load logging configuration from dict. |
load_yaml | Load logging configuration from yaml file. |
Functions:¶
load ¶
Load logging configuration from file or dict.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| str | Path | dict[str, Any] | configuration file path or dict | required |
| further logging.config.fileConfig arguments | {} |
Raises:
| Type | Description |
|---|---|
ValueError | if configuration file could not be loaded |
Source code in src/dlr/ki/logging/loader.py
load_conf ¶
Load logging configuration from conf file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| str | Path | conf file path | required |
| further logging.config.fileConfig arguments | {} |
Source code in src/dlr/ki/logging/loader.py
load_default ¶
load_default(
log_filepath: str | Path | None = None, ensure_log_dir: bool = True
) -> None
Load default logging configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| str | Path | Log file path. Defaults to None. | None |
| bool | Create directory for the log file if not exists. Defaults to True. | True |
Source code in src/dlr/ki/logging/loader.py
load_dict ¶
load_yaml ¶
Load logging configuration from yaml file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| str | Path | yaml file path | required |