zakkg3 / ClusterSecret

Kubernetes ClusterSecret operator.
Apache License 2.0
407 stars 82 forks source link

Make logs configurable via environment variables #142

Open Anton0C opened 2 months ago

Anton0C commented 2 months ago

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:

Anton0C commented 1 month ago

@zakkg3 Could you take a look ? Thanks!