()
| 76 | } |
| 77 | |
| 78 | func (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 | |
| 91 | func (l *Logger) newTemplate(format string) *fasttemplate.Template { |
| 92 | return fasttemplate.New(format, "${", "}") |
no test coverage detected