logger

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 6 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 {
	*zerolog.Logger
}

Logger wraps zerolog.Logger to provide a consistent logging interface.

func New

func New(out io.Writer, debug bool) *Logger

New creates a new Logger instance.

func NewFromZerolog added in v2.8.0

func NewFromZerolog(zlog zerolog.Logger) *Logger

NewFromZerolog wraps an already configured operational logger graph. The caller retains ownership of every sink used by zlog.

func (*Logger) WithComponent

func (l *Logger) WithComponent(component string) *Logger

WithComponent creates a child logger with a component field.

func (*Logger) WithPid

func (l *Logger) WithPid(pid uint64) *Logger

WithPid creates a child logger with a pid field.

func (*Logger) WithProbe

func (l *Logger) WithProbe(probe string) *Logger

WithProbe creates a child logger with a probe field.

func (*Logger) Write

func (l *Logger) 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