OSDN Git Service

add read me doc
[bytom/vapor.git] / log / log.go
index 818e5ef..5563cd0 100644 (file)
@@ -12,7 +12,7 @@ import (
        rotatelogs "github.com/lestrrat-go/file-rotatelogs"
        "github.com/sirupsen/logrus"
 
-       "github.com/vapor/config"
+       "github.com/bytom/vapor/config"
 )
 
 const (
@@ -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()