client-go: kmodules.xyz/client-go/logs Index | Files

package logs

import "kmodules.xyz/client-go/logs"

Index

Package Files

logs.go

func AddFlags Uses

func AddFlags(fs *pflag.FlagSet)

AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the same value as the global flags.

func FlushLogs Uses

func FlushLogs()

FlushLogs flushes logs immediately.

func GlogSetter Uses

func GlogSetter(val string) (string, error)

GlogSetter is a setter to set glog level.

func InitLogs Uses

func InitLogs()

InitLogs initializes logs the way we want for kubernetes.

func NewLogger Uses

func NewLogger(prefix string) *log.Logger

NewLogger creates a new log.Logger which sends logs to klog.Info.

func ParseFlags Uses

func ParseFlags()

type KlogWriter Uses

type KlogWriter struct{}

KlogWriter serves as a bridge between the standard log package and the glog package.

func (KlogWriter) Write Uses

func (writer KlogWriter) Write(data []byte) (n int, err error)

Write implements the io.Writer interface.

Package logs imports 9 packages (graph) and is imported by 75 packages. Updated 2020-09-30. Refresh now. Tools for package owners.