Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var ( // DiscardHandle: used when log level isnt reached (discard log) DiscardHandle LogHandle = ioutil.Discard // HandleTrace: output dest for trace log HandleTrace LogHandle = os.Stdout // HandleInfo: output dest for info log HandleInfo LogHandle = os.Stdout // HandleWarning: output dest for warning log HandleWarning LogHandle = os.Stdout // HandleError: output dest for error log HandleError LogHandle = os.Stdout // HandlePanic: output dest for panic log HandlePanic LogHandle = os.Stderr // Ldir: Log directory, where file (not "output") logs are stored. Ldir LogDir = LogDir(os.TempDir() + string(os.PathSeparator) + "go-log") )
Functions ¶
This section is empty.
Types ¶
type LogPrefix ¶
type LogPrefix string
const ( // PrefixTrace: Log prefix for trace PrefixTrace LogPrefix = "TRACE" // PrefixInfo: Log prefix for info PrefixInfo LogPrefix = "INFO" // PrefixWarning: Log prefix for warning PrefixWarning LogPrefix = "WARNING" // PrefixError: Log prefix for error PrefixError LogPrefix = "ERROR" // PrefixPanic: Log prefix for panic PrefixPanic LogPrefix = "PANIC" )
Click to show internal directories.
Click to hide internal directories.