log

package
v0.0.0-...-6c6fd2d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FATAL ...
	FATAL = 5
	// ERROR ...
	ERROR = 4
	// WARN ...
	WARN = 3
	// IMPORTANT ...
	IMPORTANT = 2
	// INFO ...
	INFO = 1
	// DEBUG ...
	DEBUG = 0
)

Variables

LogColors defines message output colors

Functions

This section is empty.

Types

type Logger

type Logger struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Logger ...

func (*Logger) Debug

func (l *Logger) Debug(format string, args ...interface{})

Debug ...

func (*Logger) Error

func (l *Logger) Error(format string, args ...interface{})

Error ...

func (*Logger) Fatal

func (l *Logger) Fatal(format string, args ...interface{})

Fatal ...

func (*Logger) Important

func (l *Logger) Important(format string, args ...interface{})

Important ...

func (*Logger) Info

func (l *Logger) Info(format string, args ...interface{})

Info ...

func (*Logger) Log

func (l *Logger) Log(level int, format string, args ...interface{})

Log logs a message

func (*Logger) SetDebug

func (l *Logger) SetDebug(d bool)

SetDebug sets logger debug option

func (*Logger) SetSilent

func (l *Logger) SetSilent(s bool)

SetSilent sets logger silent option

func (*Logger) Warn

func (l *Logger) Warn(format string, args ...interface{})

Warn ...

Jump to

Keyboard shortcuts

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