skupperproject / skupper

Skupper is an implementation of a Virtual Application Network, enabling rich hybrid cloud communication.
http://skupper.io
Apache License 2.0
595 stars 74 forks source link

[v2] add ability to set skupper-control log level #1698

Open Karen-Schoener opened 1 month ago

Karen-Schoener commented 1 month ago

In v2, add the ability to configure the skupper-controller log level.

Preferably, add the ability to configure log level dynamically.

Work is underway to update the skupper-controller to issue logs via slog (at levels: debug, info, error, etc.) For reference, see ticket https://github.com/skupperproject/skupper/issues/1692.

Karen-Schoener commented 1 month ago

As a first step, I plan to refer to this example to change the log level. https://pkg.go.dev/log/slog@master#example-Handler-LevelHandler

Also, we'll need to discuss: how does log level get set (env var, crd attribute, etc.).

Karen-Schoener commented 3 weeks ago

For a simple way to change slog log level, refer to link: https://pkg.go.dev/golang.org/x/exp/slog#hdr-Levels