logger

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAdapter

func AddAdapter(adapter func(context.Context, zerolog.Context) zerolog.Context)

func Close

func Close()

func Debug

func Debug(ctx context.Context) *zerolog.Event

func Debugf added in v0.18.0

func Debugf(msg string, v ...any)

func Err

func Err(ctx context.Context, err error) *zerolog.Event

func Errf added in v0.18.0

func Errf(err error, msg string, v ...any)

func Error

func Error(ctx context.Context) *zerolog.Event

func Errorf added in v0.18.0

func Errorf(msg string, v ...any)

func Fatal

func Fatal(ctx context.Context) *zerolog.Event

func Fatalf added in v0.18.0

func Fatalf(msg string, v ...any)

func Get

func Get(ctx context.Context) *zerolog.Logger

func Info

func Info(ctx context.Context) *zerolog.Event

func Infof added in v0.18.0

func Infof(msg string, v ...any)

func Initialize

func Initialize() *zerolog.Logger

func NewLogWriter

func NewLogWriter(logger *zerolog.Logger, level zerolog.Level) *logWriter

NewLogWriter creates a new log writer that writes to the given logger with the given level.

func ParseLevel

func ParseLevel(level string) zerolog.Level

func Trace

func Trace(ctx context.Context) *zerolog.Event

func Warn

func Warn(ctx context.Context) *zerolog.Event

func Warnf added in v0.18.0

func Warnf(msg string, v ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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