logger

package
v0.0.0-...-f6b4a90 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LogFile is the file path of generated logs
	LogFile            string = "runtime.log"
	VerboseDescription string = `
	// Verbose control level of log verbosity
	// 0) Only Info, Error
	// 1) Add Debug, Warning
	// 2) Add Trace
`
	Verbose int = 0
)
View Source
var LoggerMap map[string]*Logger

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Trace   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
	Debug   *log.Logger
}

func NewLogger

func NewLogger(prefix string) (logger *Logger)

func UseLog

func UseLog(prefix string) *Logger

func (*Logger) DiscardAll

func (logger *Logger) DiscardAll()

Jump to

Keyboard shortcuts

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