console

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Unlicense Imports: 2 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 uint32
const (
	Debug Level = iota
	Info
	Warn
	Error
	Fatal
)

func ParseLevel

func ParseLevel(level string) Level

type Logger

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

func NewLogger

func NewLogger(level Level) *Logger

func (*Logger) Debug

func (logger *Logger) Debug(msg string)

func (*Logger) Error

func (logger *Logger) Error(msg string)

func (*Logger) Fatal

func (logger *Logger) Fatal(msg string)

func (*Logger) Info

func (logger *Logger) Info(msg string)

func (*Logger) Warn

func (logger *Logger) Warn(msg string)

Jump to

Keyboard shortcuts

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