You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we use flag package to support command line flags, and glog also uses it by default. Then you can see our binary have more flags than we thing although we use logrus instead of glog:
➜ tf-operator git:(416) ✗ ./tf-operator -h
Usage of ./tf-operator:
-alsologtostderr
log to standard error as well as files
-chaos-level int
DO NOT USE IN PRODUCTION - level of chaos injected into the TFJob created by the operator. (default -1)
-controller-config-file string
Path to file containing the controller config.
-gc-interval duration
GC interval (default 10m0s)
-json-log-format
Set true to use json style log format. Set false to use plaintext style log format (default true)
-log_backtrace_at value
when logging hits line file:N, emit a stack trace
-log_dir string
If non-empty, write log files in this directory
-logtostderr
log to standard error instead of files
-stderrthreshold value
logs at or above this threshold go to stderr
-v value
log level for V logs
-version
Show version and quit
-vmodule value
comma-separated list of pattern=N settings for file-filtered logging
There are some pros and cons:
We can support vendor and client's glog, since we have glog's flags
But the users may be confused since the tf-operator outputs logs regardless of the flag -logtostderr
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Now we use flag package to support command line flags, and glog also uses it by default. Then you can see our binary have more flags than we thing although we use logrus instead of glog:
There are some pros and cons:
-logtostderr
The text was updated successfully, but these errors were encountered: