|
@@ -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),
|