log

package
v0.0.0-...-94216e4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLevel

func SetLevel(lv slog.Level)

Types

type Logger

type Logger struct {
	*slog.Logger
}

func New

func New() Logger

func (Logger) Debugf

func (l Logger) Debugf(format string, v ...any)

func (Logger) Error

func (l Logger) Error(err error, msg string, args ...any)

func (Logger) Errorf

func (l Logger) Errorf(err error, format string, v ...any)

func (Logger) Fatal

func (l Logger) Fatal(err error, msg string, args ...any)

func (Logger) Fatalf

func (l Logger) Fatalf(err error, format string, v ...any)

func (Logger) Infof

func (l Logger) Infof(format string, v ...any)

func (Logger) Warnf

func (l Logger) Warnf(format string, v ...any)

Jump to

Keyboard shortcuts

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