Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int8
Level level for logger
const ( // Trace level. Designates finer-grained informational events than the Debug. Trace Level = iota - 2 // Debug level. Usually only enabled when debugging. Very verbose logging. Debug // Info is the default logging priority. // General operational entries about what's going on inside the application. Info // Warn level. Non-critical entries that deserve eyes. Warn // Error level. Logs. Used for errors that should definitely be noted. Error // Fatal level. Logs and then calls `logger.Exit(1)`. highest level of severity. Fatal )
func GetLevel ¶
GetLevel converts a level string into a logger Level value. returns an error if the input string does not match known values.
Click to show internal directories.
Click to hide internal directories.