Skip to content

Make logs configurable via environment variables #142

Open
@Anton0C

Description

@Anton0C

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions