forked from External/ergo
fix timestamp formatting
This commit is contained in:
parent
6a900ca0cb
commit
ded03ee618
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue