log

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int
const (
	Trace Level = iota
	Debug
	Info
	Warn
	Error
	Fatal
	Off
)

func ParseLevel

func ParseLevel(s string) (Level, error)

type Logger

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

func New

func New(w io.Writer, level Level) *Logger

func (*Logger) Debug

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

func (*Logger) Error

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

func (*Logger) Fatal

func (l *Logger) Fatal(format string, args ...any)

func (*Logger) Info

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

func (*Logger) SetLevel

func (l *Logger) SetLevel(level Level)

func (*Logger) Trace

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

func (*Logger) Warn

func (l *Logger) Warn(format string, args ...any)

Jump to

Keyboard shortcuts

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