slogx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 3 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 {
	Debug(msg string, args ...any)
	Info(msg string, args ...any)
	Warn(msg string, args ...any)
	Error(msg string, args ...any)
	With(args ...any) Logger
	WithGroup(name string) Logger
}

func DefaultNopLogger

func DefaultNopLogger() Logger

DefaultNopLogger returns a nop logger.

func NewLoggerWithLumberjack

func NewLoggerWithLumberjack(logf pkg.Log) Logger

func NewLoggerWithSlog

func NewLoggerWithSlog(logger *slog.Logger) Logger

NewLoggerWithSlog creates a new logger which wraps the given logrus.Logger

Jump to

Keyboard shortcuts

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