Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Nftl is the number for fatal errors Nftl = iota // Nerr is the number for errors Nerr // Nwrn is the number for warnings Nwrn // Ninf is the number for information Ninf // Ndbg is the number for debugging Ndbg // Ntrc is the number for trace Ntrc )
Variables ¶
View Source
var ( // Ftl is for critical/fatal errors Ftl = &Lvl{0, ftlFn, nil} // Err is an error that does block continuation Err = &Lvl{1, errFn, nil} // Wrn is is a warning of a correctable condition Wrn = &Lvl{2, wrnFn, nil} // Inf is is general information Inf = &Lvl{3, infFn, nil} // Dbg is debug level information Dbg = &Lvl{4, dbgFn, nil} // Trc is detailed outputs of contents of variables Trc = &Lvl{5, trcFn, nil} // L is an array of log levels that can be selected given the level number L = []*Lvl{ Ftl, Err, Wrn, Inf, Dbg, Trc, } // LogLevel is a dynamically settable log level filter that excludes higher values from output LogLevel = Trc.Num // Quit signals the logger to stop Quit = make(chan struct{}) // LogIt is the function that performs the output, can be loaded by the caller LogIt = Print )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.