log

package
v2.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogger

type ILogger interface {
	SetLevel(level Level)
	Debug(msg string, args ...any)
	Info(msg string, args ...any)
	Error(msg string, args ...any)
}

type Level

type Level string
const (
	DebugLvl Level = "debug"
	InfoLvl  Level = "info"
	ErrorLvl Level = "error"
)

type Logger

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

func New

func New(w io.Writer, opts ...Opts) *Logger

func (*Logger) Debug

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

func (*Logger) Error

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

func (*Logger) Info

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

func (*Logger) SetLevel

func (l *Logger) SetLevel(level Level)

type Opts

type Opts func(*Logger)

Jump to

Keyboard shortcuts

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