Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LevelTrace gologger.Level = gologger.LevelTrace LevelDebug gologger.Level = gologger.LevelDebug LevelInfo gologger.Level = gologger.LevelInfo LevelWarn gologger.Level = gologger.LevelWarn LevelError gologger.Level = gologger.LevelError LevelCritical gologger.Level = gologger.LevelCritical LevelFatal gologger.Level = gologger.LevelFatal LevelNone gologger.Level = gologger.LevelNone )
View Source
var ( TRACE *gologger.LevelLogger DEBUG *gologger.LevelLogger INFO *gologger.LevelLogger WARN *gologger.LevelLogger ERROR *gologger.LevelLogger CRITICAL *gologger.LevelLogger FATAL *gologger.LevelLogger )
View Source
var LevelMatches = map[string]gologger.Level{ "TRACE": gologger.LevelTrace, "DEBUG": gologger.LevelDebug, "INFO": gologger.LevelInfo, "WARN": gologger.LevelWarn, "ERROR": gologger.LevelError, "CRITICAL": gologger.LevelCritical, "FATAL": gologger.LevelFatal, "NONE": gologger.LevelNone, }
Functions ¶
func SetLogFile ¶
SetLogFile sets the LogHandle to a io.writer created for the file behind the given file path. Will append to this file.
func SetLogThreshold ¶
SetLogThreshold establishes a threshold where anything matching or above will be logged.
func SetStdoutThreshold ¶
SetStdoutThreshold establishes a threshold where anything matching or above will be output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.