gwlog

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const ReconcileEnd = "RECONCILE_END_MARKER"
View Source
const ReconcileStart = "RECONCILE_START_MARKER"

Variables

View Source
var FallbackLogger = NewLogger(zap.DebugLevel)

Functions

func AddMetadata added in v1.0.7

func AddMetadata(ctx context.Context, key, value string)

func EndReconcileTrace added in v1.0.7

func EndReconcileTrace(ctx context.Context, log Logger)

func GetTraceID added in v1.0.7

func GetTraceID(ctx context.Context) string

func NewTrace added in v1.0.7

func NewTrace(ctx context.Context) context.Context

func StartReconcileTrace added in v1.0.7

func StartReconcileTrace(ctx context.Context, log Logger, k8sresourcetype, name, namespace string) context.Context

Types

type Logger

type Logger = *TracedLogger

func NewLogger

func NewLogger(level zapcore.Level) Logger

type TracedLogger added in v1.0.7

type TracedLogger struct {
	InnerLogger *zap.SugaredLogger
}

func (*TracedLogger) Debug added in v1.0.7

func (t *TracedLogger) Debug(ctx context.Context, msg string)

func (*TracedLogger) Debugf added in v1.0.7

func (t *TracedLogger) Debugf(ctx context.Context, template string, args ...interface{})

func (*TracedLogger) Debugw added in v1.0.7

func (t *TracedLogger) Debugw(ctx context.Context, msg string, keysAndValues ...interface{})

func (*TracedLogger) Error added in v1.0.7

func (t *TracedLogger) Error(ctx context.Context, msg string)

func (*TracedLogger) Errorf added in v1.0.7

func (t *TracedLogger) Errorf(ctx context.Context, template string, args ...interface{})

func (*TracedLogger) Errorw added in v1.0.7

func (t *TracedLogger) Errorw(ctx context.Context, msg string, keysAndValues ...interface{})

func (*TracedLogger) Info added in v1.0.7

func (t *TracedLogger) Info(ctx context.Context, msg string)

func (*TracedLogger) Infof added in v1.0.7

func (t *TracedLogger) Infof(ctx context.Context, template string, args ...interface{})

func (*TracedLogger) Infoln added in v1.0.7

func (t *TracedLogger) Infoln(args ...interface{})

func (*TracedLogger) Infow added in v1.0.7

func (t *TracedLogger) Infow(ctx context.Context, msg string, keysAndValues ...interface{})

func (*TracedLogger) Named added in v1.0.7

func (t *TracedLogger) Named(name string) *TracedLogger

func (*TracedLogger) Warn added in v1.0.7

func (t *TracedLogger) Warn(ctx context.Context, msg string)

func (*TracedLogger) Warnf added in v1.0.7

func (t *TracedLogger) Warnf(ctx context.Context, template string, args ...interface{})

func (*TracedLogger) Warnw added in v1.0.7

func (t *TracedLogger) Warnw(ctx context.Context, msg string, keysAndValues ...interface{})

Jump to

Keyboard shortcuts

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