Versions in this module Expand all Collapse all v2 v2.2.1 Jun 23, 2020 Changes in this version + var ErrorSeverityLevel = severityName[errorLog] + var FatalSeverityLevel = severityName[fatalLog] + var InfoSeverityLevel = severityName[infoLog] + var MaxSize uint64 = 1024 * 1024 * 1800 + var Stats struct + var WarningSeverityLevel = severityName[warningLog] + func AddHook(hook Hook) + func CalculateMaxSize() uint64 + func CopyStandardLogTo(name string) + func Error(args ...interface{}) + func ErrorDepth(depth int, args ...interface{}) + func ErrorS(err error, msg string, keysAndValues ...interface{}) + func Errorf(format string, args ...interface{}) + func Errorln(args ...interface{}) + func Exit(args ...interface{}) + func ExitDepth(depth int, args ...interface{}) + func Exitf(format string, args ...interface{}) + func Exitln(args ...interface{}) + func Fatal(args ...interface{}) + func FatalDepth(depth int, args ...interface{}) + func Fatalf(format string, args ...interface{}) + func Fatalln(args ...interface{}) + func Flush() + func GetSeverityNames() []string + func Info(args ...interface{}) + func InfoDepth(depth int, args ...interface{}) + func InfoS(msg string, keysAndValues ...interface{}) + func Infof(format string, args ...interface{}) + func Infoln(args ...interface{}) + func InitFlags(flagset *flag.FlagSet) + func IsSeverityLevelSupported(severityLevel string) error + func LogToStderr(stderr bool) + func SetLogger(logr logr.Logger) + func SetOutput(w io.Writer) + func SetOutputBySeverity(name string, w io.Writer) + func Warning(args ...interface{}) + func WarningDepth(depth int, args ...interface{}) + func Warningf(format string, args ...interface{}) + func Warningln(args ...interface{}) + type Hook interface + Fire func(s string, args ...interface{}) error + SeverityLevel func() string + type Hooks map[string][]Hook + func (hooks Hooks) Add(hook Hook) error + func (hooks Hooks) Fire(s severity, args ...interface{}) error + type KMetadata interface + GetName func() string + GetNamespace func() string + type Level int32 + func (l *Level) Get() interface{} + func (l *Level) Set(value string) error + func (l *Level) String() string + type ObjectRef struct + Name string + Namespace string + func KObj(obj KMetadata) ObjectRef + func KRef(namespace, name string) ObjectRef + func (ref ObjectRef) String() string + type OutputStats struct + func (s *OutputStats) Bytes() int64 + func (s *OutputStats) Lines() int64 + type Verbose struct + func V(level Level) Verbose + func (v Verbose) Enabled() bool + func (v Verbose) Error(err error, msg string, args ...interface{}) + func (v Verbose) Info(args ...interface{}) + func (v Verbose) InfoS(msg string, keysAndValues ...interface{}) + func (v Verbose) Infof(format string, args ...interface{}) + func (v Verbose) Infoln(args ...interface{}) Other modules containing this package github.com/practo/klog