|
@@ -38,7 +38,7 @@ func SetupLogger(opts ...Option) logger.Logger {
|
|
|
output, err = rotatelogs.New(
|
|
|
op.path+"/%Y-%m-%d.log",
|
|
|
rotatelogs.WithLinkName(op.path+"/log.log"),
|
|
|
- rotatelogs.WithMaxAge(7*24*time.Hour),
|
|
|
+ rotatelogs.WithMaxAge(time.Duration(op.maxDays)*24*time.Hour),
|
|
|
rotatelogs.WithRotationTime(24*time.Hour),
|
|
|
)
|
|
|
if err != nil {
|