Documentation ¶
Overview ¶
Package logger contains functions for a working with application logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStrings ¶
func FormatStrings() []string
FormatStrings returns a slice of all logging formats as strings.
func LevelStrings ¶
func LevelStrings() []string
LevelStrings returns a slice of all logging levels as strings.
Types ¶
type Format ¶
type Format uint8
A Format is a logging format.
func ParseFormat ¶
ParseFormat parses a format (case is ignored) based on the ASCII representation of the log format. If the provided ASCII representation is invalid an error is returned.
This is particularly useful when dealing with text input to configure log formats.
type Level ¶
type Level int8
A Level is a logging level.
func ParseLevel ¶
ParseLevel parses a level (case is ignored) based on the ASCII representation of the log level. If the provided ASCII representation is invalid an error is returned.
This is particularly useful when dealing with text input to configure log levels.