Open Anton0C opened 2 months ago
It would be useful to make the logging behavior of the application configurable. Specifically, I would like to:
All of these configurations should be adjustable via environment variables to provide more flexibility in different environments.
LOG_LEVEL
INFO
DEBUG
ERROR
LOG_ENCODER
plain
json
LOG_FORMAT
@zakkg3 Could you take a look ? Thanks!
Description:
It would be useful to make the logging behavior of the application configurable. Specifically, I would like to:
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.