logger

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: GPL-3.0 Imports: 10 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Level = &level{lvl: &slog.LevelVar{}}

Functions

func Debug

func Debug(a ...any)

func Debugf

func Debugf(format string, a ...any)

func Error

func Error(a ...any)

func Errorf

func Errorf(format string, a ...any)

func Info

func Info(a ...any)

func Infof

func Infof(format string, a ...any)

func Warning

func Warning(a ...any)

func Warningf

func Warningf(format string, a ...any)

Types

type Logger

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

func New

func New() *Logger

func With added in v0.57.0

func With(args ...any) *Logger

func (*Logger) Debug

func (l *Logger) Debug(a ...any)

func (*Logger) Debugf

func (l *Logger) Debugf(format string, a ...any)

func (*Logger) Error

func (l *Logger) Error(a ...any)

func (*Logger) Errorf

func (l *Logger) Errorf(format string, a ...any)

func (*Logger) Info

func (l *Logger) Info(a ...any)

func (*Logger) Infof

func (l *Logger) Infof(format string, a ...any)

func (*Logger) Mute added in v0.57.0

func (l *Logger) Mute()

func (*Logger) Unmute added in v0.57.0

func (l *Logger) Unmute()

func (*Logger) Warning

func (l *Logger) Warning(a ...any)

func (*Logger) Warningf

func (l *Logger) Warningf(format string, a ...any)

func (*Logger) With added in v0.57.0

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

Jump to

Keyboard shortcuts

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