Documentation ¶
Index ¶
Constants ¶
View Source
const ( Debug = 0 Warning = 1 Info = 2 Error = 3 )
LogLevel constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLevel ¶
type LogLevel int
LogLevel represents a set log level, in the range 0-3 inclusive: Debug 0, Warning 1, Info 2, Error 3. Integers are used so that it makes including log levels simple using integer comparision.
func ParseLevelFromString ¶
ParseLevelFromString uses regexp package to determine what `LogLevel` you would like to use. Useful for making configuration
Click to show internal directories.
Click to hide internal directories.