tracelog

package module
v0.0.0-...-60dcd91 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 95

README

tracelog

Documentation

Index

Constants

View Source
const (
	NormalLogLevel = "NORMAL"
	DevelLogLevel  = "DEVEL"
	ErrorLogLevel  = "ERROR"
)

Variables

View Source
var DebugLogger = NewErrorLogger(ioutil.Discard, "DEBUG: ")
View Source
var ErrorLogger = NewErrorLogger(os.Stderr, "ERROR: ")
View Source
var InfoLogger = NewErrorLogger(os.Stderr, "INFO: ")
View Source
var WarningLogger = NewErrorLogger(os.Stderr, "WARNING: ")

Functions

func GetErrorFormatter

func GetErrorFormatter() string

func NewErrorLogger

func NewErrorLogger(out io.Writer, prefix string) *errorLogger

func SetErrorOutput

func SetErrorOutput(destination *os.File)

func SetInfoOutput

func SetInfoOutput(destination *os.File)

func SetWarningOutput

func SetWarningOutput(destination *os.File)

func UpdateLogLevel

func UpdateLogLevel(newLevel string) error

Types

type LogLevelError

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

func NewLogLevelError

func NewLogLevelError() LogLevelError

func (LogLevelError) Error

func (err LogLevelError) Error() string

Jump to

Keyboard shortcuts

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