Open
Description
Description:
It would be useful to make the logging behavior of the application configurable. Specifically, I would like to:
- Change the verbosity of logs (e.g., INFO, DEBUG, ERROR).
- Enable or disable JSON output for logs.
- 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
orjson
).LOG_FORMAT
: Ability to customize the content of each log string.