mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 11:59:40 +01:00
fix timestamp formatting
This commit is contained in:
parent
6a900ca0cb
commit
ded03ee618
@ -230,7 +230,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str
|
||||
// assemble full line
|
||||
|
||||
var rawBuf bytes.Buffer
|
||||
fmt.Fprintf(&rawBuf, "%s : %s : %s : ", time.Now().UTC().Format("2006-01-02T15:04:05Z"), LogLevelDisplayNames[level], logType)
|
||||
fmt.Fprintf(&rawBuf, "%s : %s : %s : ", time.Now().UTC().Format("2006-01-02T15:04:05.000Z"), LogLevelDisplayNames[level], logType)
|
||||
for i, p := range messageParts {
|
||||
rawBuf.WriteString(p)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user