|
|
@ -15,7 +15,7 @@ type simpleFormatter struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Format implements log.Formatter
|
|
|
|
// Format implements log.Formatter
|
|
|
|
func (f simpleFormatter) Format(level Level, msg string, logger *Logger) []byte {
|
|
|
|
func (f *simpleFormatter) Format(level Level, msg string, logger *Logger) []byte {
|
|
|
|
time := time.Now().Format("15:04:05.000")
|
|
|
|
time := time.Now().Format("15:04:05.000")
|
|
|
|
return []byte(fmt.Sprintf("%s %s %s\n", time, level.String(), msg))
|
|
|
|
return []byte(fmt.Sprintf("%s %s %s\n", time, level.String(), msg))
|
|
|
|
}
|
|
|
|
}
|
|
|
|