ctxlog

package
v0.0.0-...-ed02bd6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CtxKey = contextKey("ID")

CtxKey for context based logging

View Source
var ReqID = contextKey("Req-ID")

ReqID for logging request ID

Functions

func ErrorS

func ErrorS(ctx context.Context, err error, msg string, keysAndValues ...interface{})

func Errorf

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

func Infof

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

func Warningf

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

Types

type CtxLog

type CtxLog struct {
	// contains filtered or unexported fields
}

func V

func V(level klog.Level) CtxLog

func (CtxLog) Infof

func (l CtxLog) Infof(ctx context.Context, format string, args ...interface{})

Jump to

Keyboard shortcuts

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