Documentation ¶
Overview ¶
Package logger is a simple package to support rotating log file with multiple files and basic tagging
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //FileTimeFmt specifies the date format for the log files FileTimeFmt = "06-01-02" //Default is the default logger Default *defaultLogger )
Functions ¶
func ReportValue ¶
Types ¶
type MultiLogger ¶
type MultiLogger interface { SetRoot(p string) error Read(kind string) (io.ReadCloser, error) Logs() ([]string, error) Log(kind, tag, msg string, err error) ReportHit(lbl string) ReportValue(lbl string, v int) Trace(key string) }
MultiLogger specifies an interface to log multiple sources than can be streamed
Click to show internal directories.
Click to hide internal directories.