logger

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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 Err

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

func Error

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

func Fatal

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

func Get

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

func Info

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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