liuyong_awesome %!s(int64=4) %!d(string=hai) anos
pai
achega
b6c146f217
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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),