Documentation
¶
Index ¶
- func ClampLevel(l Level)
- func Error(args ...interface{})
- func ErrorDepth(_ 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(_ int, args ...interface{})
- func Exitf(format string, args ...interface{})
- func Exitln(args ...interface{})
- func Fatal(args ...interface{})
- func FatalDepth(_ int, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func InfoDepth(_ int, args ...interface{})
- func InfoS(msg string, keysAndValues ...interface{})
- func InfoSDepth(_ int, msg string, keysAndValues ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func SetLogger(l log.Logger)
- func Warning(args ...interface{})
- func WarningDepth(_ int, args ...interface{})
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- type Level
- type Logger
- type ObjectRef
- type Verbose
- func (v Verbose) Enabled() bool
- func (v Verbose) Info(args ...interface{})
- func (v Verbose) InfoS(msg string, keysAndValues ...interface{})
- func (v Verbose) InfoSDepth(_ int, msg string, keysAndValues ...interface{})
- func (v Verbose) Infof(format string, args ...interface{})
- func (v Verbose) Infoln(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClampLevel ¶
func ClampLevel(l Level)
ClampLevel clamps the leveled logging at the specified value. It must be called prior any call to klog.
func ErrorDepth ¶
func ErrorDepth(_ int, args ...interface{})
func FatalDepth ¶
func FatalDepth(_ int, args ...interface{})
func InfoSDepth ¶
func SetLogger ¶
SetLogger redirects klog logging to the given logger. It must be called prior any call to klog.
func WarningDepth ¶
func WarningDepth(_ int, args ...interface{})
Types ¶
type Logger ¶ added in v3.4.0
func Background ¶ added in v3.4.0
func Background() Logger
func FromContext ¶ added in v3.4.0
Any function calling klog.FromContext(), klog.Background() or klog.TODO() will get a zero-value logger which drops all the logs.
func LoggerWithName ¶ added in v3.5.0
LoggerWithName() drops the name argument because klog has no ability to retrieve the existing key and append the argument to it.
Click to show internal directories.
Click to hide internal directories.