diff options
| author | Kubernetes Prow Robot <k8s-ci-robot@users.noreply.github.com> | 2018-12-06 10:01:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-06 10:01:18 -0800 |
| commit | 6462a8306fcf193be4716cbd6289f557bfce4374 (patch) | |
| tree | 581bb3ff3e62fc8decb0a1093d01d9a500aef3d3 | |
| parent | 672fc8472b100645453d6462cadd48a770310bea (diff) | |
| parent | 744d649e9ad9d5bb66b17fdac6840b328347fd92 (diff) | |
Merge pull request #3016 from christopherhein/chore/switch-devel-to-klog
Change devel guide glog references to klog
| -rw-r--r-- | contributors/devel/logging.md | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/contributors/devel/logging.md b/contributors/devel/logging.md index 889518a6..c4da6829 100644 --- a/contributors/devel/logging.md +++ b/contributors/devel/logging.md @@ -1,31 +1,31 @@ ## Logging Conventions -The following conventions for the glog levels to use. -[glog](http://godoc.org/github.com/golang/glog) is globally preferred to +The following conventions for the klog levels to use. +[klog](http://godoc.org/github.com/kubernetes/klog) is globally preferred to [log](http://golang.org/pkg/log/) for better runtime control. -* glog.Errorf() - Always an error +* klog.Errorf() - Always an error -* glog.Warningf() - Something unexpected, but probably not an error +* klog.Warningf() - Something unexpected, but probably not an error -* glog.Infof() has multiple levels: - * glog.V(0) - Generally useful for this to ALWAYS be visible to an operator +* klog.Infof() has multiple levels: + * klog.V(0) - Generally useful for this to ALWAYS be visible to an operator * Programmer errors * Logging extra info about a panic * CLI argument handling - * glog.V(1) - A reasonable default log level if you don't want verbosity. + * klog.V(1) - A reasonable default log level if you don't want verbosity. * Information about config (listening on X, watching Y) * Errors that repeat frequently that relate to conditions that can be corrected (pod detected as unhealthy) - * glog.V(2) - Useful steady state information about the service and important log messages that may correlate to significant changes in the system. This is the recommended default log level for most systems. + * klog.V(2) - Useful steady state information about the service and important log messages that may correlate to significant changes in the system. This is the recommended default log level for most systems. * Logging HTTP requests and their exit code * System state changing (killing pod) * Controller state change events (starting pods) * Scheduler log messages - * glog.V(3) - Extended information about changes + * klog.V(3) - Extended information about changes * More info about system state changes - * glog.V(4) - Debug level verbosity + * klog.V(4) - Debug level verbosity * Logging in particularly thorny parts of code where you may want to come back later and check it - * glog.V(5) - Trace level verbosity + * klog.V(5) - Trace level verbosity * Context to understand the steps leading up to errors and warnings * More information for troubleshooting reported issues |
