package logs
import "k8s.io/component-base/logs"
Index ¶
- func AddFlags(fs *pflag.FlagSet)
- func FlushLogs()
- func GlogSetter(val string) (string, error)
- func InitLogs()
- func NewLogger(prefix string) *log.Logger
- type KlogWriter
Functions ¶
func AddFlags ¶
AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the same value as the global flags.
func FlushLogs ¶
func FlushLogs()
FlushLogs flushes logs immediately.
func GlogSetter ¶
GlogSetter is a setter to set glog level.
func InitLogs ¶
func InitLogs()
InitLogs initializes logs the way we want for kubernetes.
func NewLogger ¶
NewLogger creates a new log.Logger which sends logs to klog.Info.
Types ¶
type KlogWriter ¶
type KlogWriter struct{}
KlogWriter serves as a bridge between the standard log package and the glog package.
func (KlogWriter) Write ¶
func (writer KlogWriter) Write(data []byte) (n int, err error)
Write implements the io.Writer interface.
Source Files ¶
logs.go
- Version
- v0.18.2
- Published
- Apr 17, 2020
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 3 minutes ago –
Tools for package owners.