log

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ctx.Context key for annotating log messages belonging to the same request.
	ReqIDContextKey = "Req-ID"

	// klog verbosity levels.
	LevelInfo  = 0
	LevelDebug = 4
	LevelTrace = 5
)

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, args ...interface{})

func DebugfDepth

func DebugfDepth(depth int, format string, args ...interface{})

func DebugfWithContext

func DebugfWithContext(ctx context.Context, format string, args ...interface{})

func DebugfWithContextDepth

func DebugfWithContextDepth(ctx context.Context, depth int, format string, args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func ErrorfDepth

func ErrorfDepth(depth int, format string, args ...interface{})

func ErrorfWithContext

func ErrorfWithContext(ctx context.Context, format string, args ...interface{})

func ErrorfWithContextDepth

func ErrorfWithContextDepth(ctx context.Context, depth int, format string, args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func FatalfDepth

func FatalfDepth(depth int, format string, args ...interface{})

func FatalfWithContext

func FatalfWithContext(ctx context.Context, format string, args ...interface{})

func FatalfWithContextDepth

func FatalfWithContextDepth(ctx context.Context, depth int, format string, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func InfofDepth

func InfofDepth(depth int, format string, args ...interface{})

func InfofWithContext

func InfofWithContext(ctx context.Context, format string, args ...interface{})

func InfofWithContextDepth

func InfofWithContextDepth(ctx context.Context, depth int, format string, args ...interface{})

func LevelEnabled

func LevelEnabled(level int) bool

func Tracef

func Tracef(format string, args ...interface{})

func TracefDepth

func TracefDepth(depth int, format string, args ...interface{})

func TracefWithContext

func TracefWithContext(ctx context.Context, format string, args ...interface{})

func TracefWithContextDepth

func TracefWithContextDepth(ctx context.Context, depth int, format string, args ...interface{})

func Warningf

func Warningf(format string, args ...interface{})

func WarningfDepth

func WarningfDepth(depth int, format string, args ...interface{})

func WarningfWithContext

func WarningfWithContext(ctx context.Context, format string, args ...interface{})

func WarningfWithContextDepth

func WarningfWithContextDepth(ctx context.Context, depth int, format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL