logger

package
v0.58.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 12 Imported by: 2 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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