From de6ab584e94e1900829e0159b2a39a6f4e389c71 Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Wed, 27 Aug 2014 17:42:42 +0200 Subject: [PATCH] better default formatting --- logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.go b/logging.go index a479a2b..43d7b59 100644 --- a/logging.go +++ b/logging.go @@ -53,7 +53,7 @@ func GetLogger(name string) (l *Logger) { } var defaultFormatter Formatter = func(r *Record) string { - return fmt.Sprintf("%s [%s] %s: %s\n", + return fmt.Sprintf("%s [%-8s] %s: %s\n", r.Timestamp.Format("2006/01/02 15:04:05"), r.Level.Name(), r.Logger, strings.TrimSpace(r.Message)) }