mirror of
https://github.com/beego/bee.git
synced 2024-12-22 20:20:49 +00:00
format the log time
This commit is contained in:
parent
d749332330
commit
7ffe1060cc
3
util.go
3
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.
|
||||
|
Loading…
Reference in New Issue
Block a user