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

Make logs configurable via environment variables #142

Open
Anton0C opened this issue Sep 10, 2024 · 1 comment
Open

Make logs configurable via environment variables #142

Anton0C opened this issue Sep 10, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Anton0C
Copy link
Contributor

Anton0C commented Sep 10, 2024

Description:

It would be useful to make the logging behavior of the application configurable. Specifically, I would like to:

  1. Change the verbosity of logs (e.g., INFO, DEBUG, ERROR).
  2. Enable or disable JSON output for logs.
  3. Pass custom log format strings.

All of these configurations should be adjustable via environment variables to provide more flexibility in different environments.

Suggested environment variables:

  • LOG_LEVEL: Set the logging verbosity level (e.g., INFO, DEBUG, ERROR).
  • LOG_ENCODER: Enable plain text or JSON logging output (plain or json).
  • LOG_FORMAT: Ability to customize the content of each log string.
@Anton0C
Copy link
Contributor Author

Anton0C commented Sep 13, 2024

@zakkg3 Could you take a look ? Thanks!

@zakkg3 zakkg3 added enhancement New feature or request help wanted Extra attention is needed labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants