From 7ffe1060cc0be967adb58ab9990e260fa716833a Mon Sep 17 00:00:00 2001 From: astaxie Date: Sat, 23 Aug 2014 14:15:38 +0800 Subject: [PATCH] format the log time --- util.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util.go b/util.go index e953861..02b2300 100644 --- a/util.go +++ b/util.go @@ -132,8 +132,7 @@ func ColorLogS(format string, a ...interface{}) string { log = clog + log } - return strings.TrimPrefix( - time.Now().Format("2006-01-02 03:04:05 "), "20") + log + return time.Now().Format("2006/01/02 15:04:05 ") + log } // getColorLevel returns colored level string by given level.