logger

package
v0.0.0-...-78ca428 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWrite

func IsWrite(r bool) optFunc

func New

func New(err error, opts ...optFunc)

func SetType

func SetType(t Lvl) optFunc

Types

type LogEntry

type LogEntry struct {
	Time       string   `json:"time"`
	Level      string   `json:"level"`
	File       string   `json:"file"`
	Line       int      `json:"line"`
	Message    string   `json:"message"`
	StackTrace []string `json:"stacktrace"`
}

type Lvl

type Lvl uint8
const (
	DEBUG Lvl = iota + 1
	INFO
	WARN
	ERROR
	OFF
	PANIC
	FATAL
)

Jump to

Keyboard shortcuts

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