Skip to content

feat: make console log level configurable via SYNTHORG_LOG_LEVEL env var #562

@Aureliolo

Description

@Aureliolo

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_LEVEL env var support in configure_logging() or create_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.example with a comment
  • File sink levels remain independent (configured via LogConfig)

Acceptance Criteria

  • SYNTHORG_LOG_LEVEL=debug produces debug output on console
  • SYNTHORG_LOG_LEVEL=warning suppresses 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:lowNice to have, can deferscope:smallLess than 1 day of workspec:architectureDESIGN_SPEC Section 15 - Technical Architecturetype:featureNew feature implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions