diff --git a/format.go b/format.go index 48b3fa1..199f6f8 100644 --- a/format.go +++ b/format.go @@ -4,12 +4,12 @@ import ( "fmt" ) -const logTemplate = "[%s] %s - %s\n" +const logTemplate = "[%s] %s : %s - %s\n" func format(logEvent LogEvent) string { data := logEvent.Ts.Format("2006-01-02 15:04:05") msg := fmt.Sprint(logEvent.Data...) - ret := fmt.Sprintf(logTemplate, data, getLogLevelStr(logEvent.Level), msg) + ret := fmt.Sprintf(logTemplate, data, logEvent.Category getLogLevelStr(logEvent.Level), msg) return ret }