Registry / logging / klog-v2

klog-v2

JSON →
library2.140.0gogounverified

A leveled logging library for Go, commonly used in Kubernetes projects.

go get k8s.io/klog/v2
INSTALL
IMPORT
SIG · KLOG-V2
K
klog-v2
logginggov2.140.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

klog
k8s.io/klog/v2

Logs an info message.

package main import ( "k8s.io/klog/v2" ) func main() { klog.Info("Hello, world!") }
Debug
Known issues
breakingklog v2 requires Go modules and uses a different import path than v1.
fix
Use k8s.io/klog/v2 for v2, k8s.io/klog for v1.
affects: >=2.0.0
Upgrade
Version history
2.140.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
Resources