zerolog

package
v0.0.0-...-3414fa2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct{}

func GetLogger

func GetLogger() *Logger

GetLogger returns the default logger instance

func NewLogger

func NewLogger(opts ...Option) *Logger

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, msg string, fields map[string]interface{})

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, msg string, err error, fields map[string]interface{})

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, msg string, fields map[string]interface{})

func (*Logger) Warn

func (l *Logger) Warn(ctx context.Context, msg string, fields map[string]interface{})

func (*Logger) WithError

func (l *Logger) WithError(ctx context.Context, err error, msg string, fields map[string]interface{})

type Option

type Option func(*options)

func WithLevel

func WithLevel(level string) Option

Jump to

Keyboard shortcuts

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