1
0
mirror of https://github.com/beego/bee.git synced 2024-06-01 19:33:28 +00:00

format the log time

This commit is contained in:
astaxie 2014-08-23 14:15:38 +08:00
parent d749332330
commit 7ffe1060cc

View File

@ -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.