logger

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	LevelTrace = slog.LevelDebug - 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*slog.Logger
	// contains filtered or unexported fields
}

func New

func New(level slog.Level, allowedGroups ...string) *Logger

func (*Logger) Level

func (l *Logger) Level() slog.Level

func (*Logger) Trace

func (l *Logger) Trace(msg string, args ...any) func(args ...any)

func (*Logger) With

func (l *Logger) With(args ...any) *Logger

func (*Logger) WithGroup

func (l *Logger) WithGroup(group string) *Logger

Jump to

Keyboard shortcuts

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