levellog

package
v0.0.0-...-1013aa6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args map[string]string

type LogLevel

type LogLevel int8
const (
	LevelInfo LogLevel = iota
	LevelWarn
	LevelError
	LevelFatal
)

func (LogLevel) String

func (l LogLevel) String() string

type Logger

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

func NewLogger

func NewLogger(level LogLevel, out io.Writer) *Logger

func (*Logger) Error

func (l *Logger) Error(message string, args Args)

func (*Logger) Fatal

func (l *Logger) Fatal(message string, args Args)

func (*Logger) Info

func (l *Logger) Info(message string, args Args)

func (*Logger) Warn

func (l *Logger) Warn(message string, args Args)

Jump to

Keyboard shortcuts

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