package
0.0.0-20210929134506-8fd29ad8f0d9
Repository: https://github.com/kok-stack/native-kubelet.git
Documentation: pkg.go.dev
# Packages
Package klogv2 implements a virtual-kubelet/log.Logger using klogv2 as a backend
If you want this to be the default logger for virtual-kubelet, set `log.L` to the value returned by `New(fields)`
We recommend reading the klog conventions to build a better understanding of levels and when they should apply https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md.
Package logrus implements a github.com/kok-stack/native-kubelet/log.Logger using Logrus as a backend You can use this by creating a logrus logger and calling `FromLogrus(entry)`.
# Functions
GetLogger retrieves the current logger from the context.
WithLogger returns a new context with the provided logger.
# Interfaces
Logger is the interface used for logging in virtual-kubelet
virtual-kubelet will access the logger via context using `GetLogger` (or its alias, `G`) You can set the default logger to use by setting the `L` variable.
# Type aliases
Fields allows setting multiple fields on a logger at one time.