logger

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 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 BaseLogger

type BaseLogger struct {
	LogLevel LogLevel
}

func NewBaseLogger

func NewBaseLogger(lv LogLevel) *BaseLogger

func (*BaseLogger) PrintCritical

func (bl *BaseLogger) PrintCritical(str string)

func (*BaseLogger) PrintDebug

func (bl *BaseLogger) PrintDebug(str string)

func (*BaseLogger) PrintError

func (bl *BaseLogger) PrintError(str string)

func (*BaseLogger) PrintInfo

func (bl *BaseLogger) PrintInfo(str string)

type LogLevel

type LogLevel uint64
const (
	None LogLevel = iota + 1
	Critical
	Info
	Debug
	Error
)

func (LogLevel) EnumIndex

func (l LogLevel) EnumIndex() int

func (LogLevel) String

func (l LogLevel) String() string

Jump to

Keyboard shortcuts

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