Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now

Add command line option to configure logger

The current logger is configured for development purposes and is not suitable for production. In some circumstances, the verbosity and frequency of log output, makes debugging very difficult.

Since controller uses Zap-based logr backend, we can use its command line flags to control the logger, including log level, log format, and development mode logging.

Here is a simple example for configuring logging: https://sdk.operatorframework.io/docs/building-operators/golang/references/logging/#a-simple-example

Assignee Loading
Time tracking Loading