log

package
v6.5.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestRegex *regexp.Regexp
)

Functions

func CheckFileName

func CheckFileName(name string) bool

Check a filename and see if logging is on for that filename If it never ben see then check with the regex. If it has been seen then just look it up in the map assumes traceMutex is locked already

func Cleanup

func Cleanup()

unused -- of.File is written by direct calls to write and not buffered and the os closes the files on exit.

func LogMessage

func LogMessage(name string, note string, msg interfaces.IMsg)

func LogParcel

func LogParcel(name string, note string, msg string)

stringify it in the caller to avoid having to deal with the import loop

func LogPrintf

func LogPrintf(name string, format string, more ...interface{})

func LookupName

func LookupName(s string) string

Look up the hex string in the map of names...

func SplitUpDebugLogRegEx

func SplitUpDebugLogRegEx(DebugLogRegEx string) (string, string)

func StateLogMessage

func StateLogMessage(FactomNodeName string, DBHeight int, CurrentMinute int, logName string, comment string, msg interfaces.IMsg)

Log a message with a state timestamp

func StateLogPrintf

func StateLogPrintf(FactomNodeName string, DBHeight int, CurrentMinute int, logName string, format string, more ...interface{})

Log a printf with a state timestamp

Types

This section is empty.

Jump to

Keyboard shortcuts

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