error_logger

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*slog.Logger
}

func New

func New(handler slog.Handler) *Logger

func NewWithErrorContextExtractor

func NewWithErrorContextExtractor(handler slog.Handler, extractor *motmedelLog.ErrorContextExtractor) *Logger

func (*Logger) Error

func (logger *Logger) Error(message string, err error, input ...any)

func (*Logger) ErrorWithSkippingMessage

func (logger *Logger) ErrorWithSkippingMessage(message string, err error, input ...any)

func (*Logger) Fatal

func (logger *Logger) Fatal(message string, err error, input ...any)

func (*Logger) FatalWithExitingMessage

func (logger *Logger) FatalWithExitingMessage(message string, err error, input ...any)

func (*Logger) Warning

func (logger *Logger) Warning(message string, err error, input ...any)

Jump to

Keyboard shortcuts

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