log

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_CONTEXT = "log-context" // for hook
)

Variables

View Source
var (
	// Logger is the global logger.
	Logger zerolog.Logger
)

Functions

This section is empty.

Types

type ContextFilterHook added in v0.10.0

type ContextFilterHook struct {
	ContextKey   string
	ContextValue string
}

func (*ContextFilterHook) Run added in v0.10.0

func (cfh *ContextFilterHook) Run(e *zerolog.Event, level zerolog.Level, message string)

type NoopLogger

type NoopLogger struct{}

func (NoopLogger) Write

func (NoopLogger) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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