xlogger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 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 LogLevel

type LogLevel int
const (
	DEBUG LogLevel = iota
	INFO
	WARN
	ERROR
)

type Logger

type Logger interface {
	Debug(str string, args ...interface{})
	Info(str string, args ...interface{})
	Warn(str string, args ...interface{})
	Error(str string, args ...interface{})
}

func NewColorLogger

func NewColorLogger(level LogLevel, prefix bool) Logger

func NewEmptyLogger

func NewEmptyLogger() Logger

Jump to

Keyboard shortcuts

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