logger

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugw

func Debugw(format string, args ...any)

func Errorw

func Errorw(format string, args ...any)

func Fatalw

func Fatalw(format string, args ...any)

func Infow

func Infow(format string, args ...any)

func Panicw

func Panicw(format string, args ...any)

func Warnw

func Warnw(format string, args ...any)

Types

type Logger

type Logger interface {
	Debugw(format string, args ...any)
	Infow(format string, args ...any)
	Warnw(format string, args ...any)
	Errorw(format string, args ...any)
	Fatalw(format string, args ...any)
	Panicw(format string, args ...any)
}

Logger is our contract for the logger

func New

func New() Logger

New returns an simple instance of logger

func NewSlog added in v0.5.0

func NewSlog(logger *slog.Logger) Logger

NewSlog returns an zap instance of logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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