zerolog

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsContext

func AsContext(err error) *zerolog.Event

Types

type Error

type Error struct {
	*errorcontext.BaseError[*zerolog.Event]
}

func FromPanic

func FromPanic(p errorcontext.Panic) *Error

func NewError

func NewError(err error, dict *zerolog.Event) *Error

func (*Error) AddContextFields

func (e *Error) AddContextFields(f map[string]any)

func (*Error) Context

func (e *Error) Context() *zerolog.Event

func (*Error) MarkAsPanic

func (e *Error) MarkAsPanic() *Error

type ErrorEventPair

type ErrorEventPair struct {
	Err     error
	Context *zerolog.Event
}

func AsChainContext

func AsChainContext(err error) []ErrorEventPair

Jump to

Keyboard shortcuts

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