MCPcopy Create free account
hub / github.com/labstack/gommon / initLevels

Method initLevels

log/log.go:78–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76}
77
78func (l *Logger) initLevels() {
79 l.levels = []string{
80 "-",
81 l.color.Blue("DEBUG"),
82 l.color.Green("INFO"),
83 l.color.Yellow("WARN"),
84 l.color.Red("ERROR"),
85 "",
86 l.color.Yellow("PANIC", color.U),
87 l.color.Red("FATAL", color.U),
88 }
89}
90
91func (l *Logger) newTemplate(format string) *fasttemplate.Template {
92 return fasttemplate.New(format, "${", "}")

Callers 3

DisableColorMethod · 0.95
EnableColorMethod · 0.95
NewFunction · 0.80

Calls 4

BlueMethod · 0.80
GreenMethod · 0.80
YellowMethod · 0.80
RedMethod · 0.80

Tested by

no test coverage detected