log

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugContextf

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

DebugContextf ...

func ErrorContextf

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

ErrorContextf ...

func Info

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

Info ...

func InfoContextf

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

InfoContextf ...

func SetLogger

func SetLogger(logger Logger)

SetLogger ...

func WarnContextf

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

WarnContextf ...

Types

type Logger

type Logger interface {
	ErrorContextf(context.Context, string, ...interface{})
	InfoContextf(context.Context, string, ...interface{})
	WarnContextf(context.Context, string, ...interface{})
	DebugContextf(context.Context, string, ...interface{})
}

Logger ...

func DefaultLogger

func DefaultLogger() Logger

DefaultLogger ...

type NoneLogger

type NoneLogger struct {
}

NoneLogger ...

func (*NoneLogger) DebugContextf

func (w *NoneLogger) DebugContextf(ctx context.Context, format string, args ...interface{})

DebugContextf ...

func (*NoneLogger) ErrorContextf

func (w *NoneLogger) ErrorContextf(ctx context.Context, format string, args ...interface{})

ErrorContextf ...

func (*NoneLogger) InfoContextf

func (w *NoneLogger) InfoContextf(ctx context.Context, format string, args ...interface{})

InfoContextf ...

func (*NoneLogger) WarnContextf

func (w *NoneLogger) WarnContextf(ctx context.Context, format string, args ...interface{})

WarnContextf ...

type WrapLogger

type WrapLogger struct {
}

WrapLogger ...

func (*WrapLogger) DebugContextf

func (w *WrapLogger) DebugContextf(ctx context.Context, format string, args ...interface{})

DebugContextf ...

func (*WrapLogger) ErrorContextf

func (w *WrapLogger) ErrorContextf(ctx context.Context, format string, args ...interface{})

ErrorContextf ...

func (*WrapLogger) InfoContextf

func (w *WrapLogger) InfoContextf(ctx context.Context, format string, args ...interface{})

InfoContextf ...

func (*WrapLogger) WarnContextf

func (w *WrapLogger) WarnContextf(ctx context.Context, format string, args ...interface{})

WarnContextf ...

Jump to

Keyboard shortcuts

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