mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +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
|
log = clog + log
|
||||||
}
|
}
|
||||||
|
|
||||||
return strings.TrimPrefix(
|
return time.Now().Format("2006/01/02 15:04:05 ") + log
|
||||||
time.Now().Format("2006-01-02 03:04:05 "), "20") + log
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// getColorLevel returns colored level string by given level.
|
// getColorLevel returns colored level string by given level.
|
||||||
|
Loading…
Reference in New Issue
Block a user