logging

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorNone = iota
	ColorRed
	ColorGreen
	ColorYellow
	ColorBlue
	ColorPurple
	ColorTeal
)

Variables

This section is empty.

Functions

func GetColorByUID added in v1.1.0

func GetColorByUID(uid int) int

Types

type Logger

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

func NewLogger

func NewLogger(debug bool) *Logger

func (*Logger) Errorf

func (l *Logger) Errorf(debug bool, format string, v ...interface{})

Errorf writes an error message to stderr

func (*Logger) Eventf

func (l *Logger) Eventf(color int, format string, v ...interface{})

Eventf writes an event with timestamp to stdout

func (*Logger) Infof

func (l *Logger) Infof(format string, v ...interface{})

Infof writes an info message to stdout

Jump to

Keyboard shortcuts

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