dlgforge.utils.logging¶
Structured logging setup helpers.
setup_logging(logs_dir, level=logging.INFO)
¶
Setup logging.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
logs_dir
|
Path
|
Path value used by this operation. |
required |
level
|
int
|
int value used by this operation. |
INFO
|
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
No value is returned. |
Raises:
| Type | Description |
|---|---|
Exception
|
Propagates unexpected runtime errors from downstream calls. |
Side Effects / I/O: - May read environment variables or mutate process-level runtime state.
Preconditions / Invariants: - Callers should provide arguments matching annotated types and expected data contracts.
Examples:
>>> from dlgforge.utils.logging import setup_logging
>>> setup_logging(...)