Fix log format

This commit is contained in:
Viktor Liu 2025-02-28 20:24:23 +01:00
parent 0db65a8984
commit 6ead0ff95e

View File

@ -133,7 +133,7 @@ func (l *Logger) Trace(format string, args ...any) {
func (l *Logger) formatMessage(buf *[]byte, level Level, format string, args ...any) { func (l *Logger) formatMessage(buf *[]byte, level Level, format string, args ...any) {
*buf = (*buf)[:0] *buf = (*buf)[:0]
*buf = time.Now().AppendFormat(*buf, "2006-01-02T15:04:05.000-07:00") *buf = time.Now().AppendFormat(*buf, "2006-01-02T15:04:05-07:00")
*buf = append(*buf, ' ') *buf = append(*buf, ' ')
*buf = append(*buf, levelStrings[level]...) *buf = append(*buf, levelStrings[level]...)
*buf = append(*buf, ' ') *buf = append(*buf, ' ')