liuyong_awesome 4 vuotta sitten
vanhempi
commit
b6c146f217
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      log.go

+ 1 - 1
log.go

@@ -32,7 +32,7 @@ func NewLoggerByLogName(path string, options ...RotateOption) (*logrus.Logger, e
 		v(co)
 	}
 	writer, err := rotatelogs.New(
-		path+".%Y%m%d%H%M",
+		path+"log%Y%m%d%H%M%S",
 		rotatelogs.WithLinkName(path),
 		rotatelogs.WithMaxAge(co.MaxAge),
 		rotatelogs.WithRotationTime(co.RotationTime),