logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 1 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 interface {
	Error(msg string, args ...any)

	WithError(err error) Logger
}

Logger interface for external implementation to enable logging for outbox.

type Noop

type Noop struct {
}

Noop is no operations imlementation of Logger interface.

func NewNoop

func NewNoop() *Noop

func (*Noop) Error

func (nw *Noop) Error(msg string, args ...any)

func (*Noop) WithError

func (nw *Noop) WithError(err error) Logger

type SLog

type SLog struct {
	// contains filtered or unexported fields
}

SLog is slog implementation of Logger interface.

func NewSLog

func NewSLog(log *slog.Logger) *SLog

func (*SLog) Error

func (s *SLog) Error(msg string, args ...any)

func (*SLog) WithError

func (s *SLog) WithError(err error) Logger

Jump to

Keyboard shortcuts

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