OSDN Git Service

run time performance measure (#553)
[bytom/vapor.git] / log / log.go
index e16ceea..5563cd0 100644 (file)
@@ -20,7 +20,10 @@ const (
        maxAge       int64 = 604800
 )
 
-var defaultFormatter = &logrus.TextFormatter{DisableColors: true}
+var defaultFormatter = &logrus.TextFormatter{
+       DisableColors:   true,
+       TimestampFormat: time.StampMicro,
+}
 
 func InitLogFile(config *config.Config) error {
        logPath := config.LogDir()