Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Logging Level Support for Tratteria Components #48

Open
kchiranjewee63 opened this issue Aug 7, 2024 · 0 comments
Open

Implement Logging Level Support for Tratteria Components #48

kchiranjewee63 opened this issue Aug 7, 2024 · 0 comments

Comments

@kchiranjewee63
Copy link
Member

kchiranjewee63 commented Aug 7, 2024

Current Behavior

Currently, the log level for all Tratteria components (tconfigd, Tratteria Service, Tratteria Agent) is set to 'info' by default. There is no documented support for changing logging levels, limiting the ability to troubleshoot and debug effectively.

Desired Behavior

Implement proper logging level support (debug, info, warn, error) for all Tratteria components, with the ability to update levels dynamically where possible.

One Potential Solution

  1. For Data Plane (Tratteria Agents and Tratteria Service):
    • Use TratteriaConfig (namespace-scoped) to supply and dynamically update log levels.
    • Allow overriding the global log level set by TratteriaConfig:
      • For Tratteria Service: via environment variables
      • For Tratteria Agents: via annotations in service deployments
  2. For Tconfigd:
    • Read the log level from its static configuration file.

Questions for Discussion

  • Do we need to support dynamic log level update for tconfigd? If so, what would be a good approach to achieve it?
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

No branches or pull requests

1 participant