-
Notifications
You must be signed in to change notification settings - Fork 0
feat: make console log level configurable via SYNTHORG_LOG_LEVEL env var #562
Copy link
Copy link
Closed
Labels
prio:lowNice to have, can deferNice to have, can deferscope:smallLess than 1 day of workLess than 1 day of workspec:architectureDESIGN_SPEC Section 15 - Technical ArchitectureDESIGN_SPEC Section 15 - Technical Architecturetype:featureNew feature implementationNew feature implementation
Description
Summary
The console sink log level is hardcoded to INFO in DEFAULT_SINKS. Docker users cannot tune log verbosity without modifying a YAML config file or Python code. A simple env var would allow docker compose users to control console output level.
Scope
- Add
SYNTHORG_LOG_LEVELenv var support inconfigure_logging()orcreate_app() - Override the console sink's level when the env var is set
- Valid values:
debug,info,warning,error,critical(case-insensitive) - Default:
info(current behavior) - Add to
docker/.env.examplewith a comment - File sink levels remain independent (configured via
LogConfig)
Acceptance Criteria
-
SYNTHORG_LOG_LEVEL=debugproduces debug output on console -
SYNTHORG_LOG_LEVEL=warningsuppresses info/debug on console - Invalid values log a warning and fall back to INFO
- File sink levels are unaffected by this env var
- Documented in
.env.example
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
prio:lowNice to have, can deferNice to have, can deferscope:smallLess than 1 day of workLess than 1 day of workspec:architectureDESIGN_SPEC Section 15 - Technical ArchitectureDESIGN_SPEC Section 15 - Technical Architecturetype:featureNew feature implementationNew feature implementation