get_logger (logging/factory.py)

EverOS · src/everos/core/observability/logging/factory.py · python · Apache-2.0
infra, tag:knn-classified

Factory for structlog loggers with unified formatting.

# Source: https://github.com/EverMind-AI/EverOS | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""structlog logger factory.

Provides ``get_logger(__name__)`` for module-level logger acquisition.
``configure_logging()`` is called once at process startup (run.py / lifespan)
to set up the structlog processor chain and route stdlib logging through
the same formatter so output stays uniform regardless of the caller.

The configuration follows structlog's official "Foreign Log Integration"
recipe: a single ``ProcessorFormatter`` renders both everos's own
``get_logger(...)`` calls and any stdlib ``logging.getLogger(...)`` call
made by third-party libraries (uvicorn, fastapi, httpx, open

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key