Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultLoggerLevel = "INFO"
View Source
const RootLoggerName = "ROOT"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultLogger ¶
Initialize a logger with string value of level
func SetLogLevelByString ¶
func SetLogLevelByString(logLevelValue string)
Sets log level by various string
"debug", "Debug", "DEBUG" "info", "Info", "INFO" "warn", "Warn", "WARN" "error", "Error", "ERROR" "fatal", "Fatal", "FATAL" "panic", "Panic", "PANIC"
Otherwise, use **INFO** level
Types ¶
type LoggerFactory ¶
type LoggerFactory struct {
LoggerLevels LoggerLevelMapping
}
type LoggerLevelMapping ¶
Mapping between logger name and level
Click to show internal directories.
Click to hide internal directories.