Skip to content

feat: add centralized logging with structured output and request corr…#12

Merged
alez007 merged 4 commits intomainfrom
feat/structured-logging
Apr 11, 2026
Merged

feat: add centralized logging with structured output and request corr…#12
alez007 merged 4 commits intomainfrom
feat/structured-logging

Conversation

@alez007
Copy link
Copy Markdown
Owner

@alez007 alez007 commented Apr 9, 2026

…elation

Replace ad-hoc Ray logger usage across 16 files with a centralized yasha.logging module. Adds JSON/text formatters, request ID correlation via contextvars, configurable log level and format via YASHA_LOG_LEVEL and YASHA_LOG_FORMAT env vars, and reduces log noise by moving request bodies and per-chunk audio logging to DEBUG level.

Alex M added 4 commits April 9, 2026 11:00
…elation

Replace ad-hoc Ray logger usage across 16 files with a centralized
yasha.logging module. Adds JSON/text formatters, request ID correlation
via contextvars, configurable log level and format via YASHA_LOG_LEVEL
and YASHA_LOG_FORMAT env vars, and reduces log noise by moving request
bodies and per-chunk audio logging to DEBUG level.
YASHA_LOG_LEVEL=TRACE sets both app and library loggers (ray, vllm,
transformers, diffusers) to DEBUG. At any other level, library loggers
are pinned to WARNING to avoid noise.
Libraries like vLLM re-configure their loggers after our
configure_logging() runs, overriding setLevel() calls. Set
VLLM_LOGGING_LEVEL, RAY_LOG_LEVEL, and TRANSFORMERS_VERBOSITY
via os.environ.setdefault so the level sticks through library
re-initialization.
@alez007 alez007 merged commit 624c936 into main Apr 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant