Documentation ¶
Overview ¶
Package loglevel provides a way to filter log messages depending on their log level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
func Log(messagelevel LogLevel, message interface{})
Log a message if the messagelevel is below or equal to the set LogLevel. For example, if the package is set to InfoMessage, then ErrorMessage, WarnMessage, and InfoMessage would be printed, but DebugMessage and TraceMessage would not be.
Types ¶
type LogLevel ¶
type LogLevel int
LogLevel defines a hirarchy of levels for classifing log messages.
An enumeration of LogLevels.
func ParseLogLevel ¶
ParseLogLevel parses a string, returns a log level.
Click to show internal directories.
Click to hide internal directories.