kubernetes / klog

Leveled execution logs for Go (fork of https://github.com/golang/glog)
Apache License 2.0
526 stars 216 forks source link

GLOG_v environment variable alternative ? #400

Open ipochi opened 7 months ago

ipochi commented 7 months ago

/kind bug

What steps did you take and what happened:

I tried to use the GLOG_v environment variable to change the logging verbosity. However that didn't work. I was wondering if there is alternative that we can use in klog ?

What did you expect to happen:

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

pohly commented 7 months ago

There's nothing in klog which parses env variables.

Note that klog is essentially in feature freeze. If you need this in some specific component that you control, then you can add env variable parsing there.

dgrisonnet commented 7 months ago

/triage accepted /assign @pohly

dgrisonnet commented 7 months ago

/remove-kind bug /kind support