Explorar el Código

add millisecond resolution to loglines

tags/v1.0.0-rc1
Shivaram Lingamneni hace 5 años
padre
commit
ac480d782f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      irc/logger/logger.go

+ 1
- 1
irc/logger/logger.go Ver fichero

@@ -250,7 +250,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str
250 250
 	}
251 251
 
252 252
 	sep := grey(":")
253
-	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)
253
+	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)
254 254
 	fullStringRaw := fmt.Sprintf("%s : %s : %s : ", time.Now().UTC().Format("2006-01-02T15:04:05Z"), LogLevelDisplayNames[level], logType)
255 255
 	for i, p := range messageParts {
256 256
 		fullStringFormatted += p

Loading…
Cancelar
Guardar