lgr

package
v0.0.0-...-afad4ed Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FatalLevel = LogLevel(iota)
	ErrorLevel
	InfoLevel
	DebugLevel
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int

type Logger

type Logger struct {
	Level  LogLevel
	Writer io.Writer
}

func (Logger) Debug

func (l Logger) Debug(format string, a ...any)

func (Logger) Info

func (l Logger) Info(format string, a ...any)

func (Logger) Write

func (l Logger) Write(data []byte) (int, error)

Write provides compatibility with io.Writer. When using this method, Log levels are ignored and no newline will be added.

Jump to

Keyboard shortcuts

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