logger

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 1 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 string
const (
	Info  Level = "info"
	Warn  Level = "warn"
	Error Level = "error"
)

type Logger

type Logger struct {
	Logs []Msg
}

func NewLogger

func NewLogger() *Logger

func (*Logger) LogError

func (l *Logger) LogError(format string, args ...interface{})

func (*Logger) LogInfo

func (l *Logger) LogInfo(format string, args ...interface{})

func (*Logger) LogWarn

func (l *Logger) LogWarn(format string, args ...interface{})

type Msg

type Msg struct {
	Level Level
	Msg   string
}

Jump to

Keyboard shortcuts

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