From ac480d782fbf20263646c75b8d5bf27da07c4c4d Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 30 Dec 2018 14:25:08 -0500 Subject: [PATCH] add millisecond resolution to loglines --- irc/logger/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/logger/logger.go b/irc/logger/logger.go index c6014482..f3e98c4b 100644 --- a/irc/logger/logger.go +++ b/irc/logger/logger.go @@ -250,7 +250,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str } sep := grey(":") - fullStringFormatted := fmt.Sprintf("%s %s %s %s %s %s ", timeGrey(time.Now().UTC().Format("2006-01-02T15:04:05Z")), sep, levelDisplay, sep, section(logType), sep) + fullStringFormatted := fmt.Sprintf("%s %s %s %s %s %s ", timeGrey(time.Now().UTC().Format("2006-01-02T15:04:05.000Z")), sep, levelDisplay, sep, section(logType), sep) fullStringRaw := fmt.Sprintf("%s : %s : %s : ", time.Now().UTC().Format("2006-01-02T15:04:05Z"), LogLevelDisplayNames[level], logType) for i, p := range messageParts { fullStringFormatted += p