logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 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 (
	LevelDebug Level = iota
	LevelInfo
	LevelWarn
	LevelError
	LevelFatal
)

func ParseLevel

func ParseLevel(lvl string) Level

type Logger

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

func New

func New(filePath string, level Level, includeStdout bool) (*Logger, error)

func (*Logger) Debug

func (l *Logger) Debug(f string, v ...any)

func (*Logger) Error

func (l *Logger) Error(f string, v ...any)

func (*Logger) Fatal

func (l *Logger) Fatal(f string, v ...any)

func (*Logger) Info

func (l *Logger) Info(f string, v ...any)

func (*Logger) Warn

func (l *Logger) Warn(f string, v ...any)

Jump to

Keyboard shortcuts

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