Spaces:
Sleeping
Sleeping
| """Centralised logging — re-exports structlog.getLogger. | |
| All application code should use this module to obtain loggers, | |
| ensuring consistent structlog configuration throughout the codebase. | |
| Usage | |
| ----- | |
| from logger import get_logger | |
| logger = get_logger(__name__) | |
| logger.info("event", key="value", duration_ms=42.0) | |
| """ | |
| from __future__ import annotations | |
| import structlog | |
| __all__ = ["get_logger"] | |
| get_logger = structlog.get_logger | |