chore: refactoring logx (#2181)

This commit is contained in:
Kevin Wan
2022-07-22 22:28:01 +08:00
committed by GitHub
parent 101304be53
commit 34eb3fc12e
8 changed files with 67 additions and 80 deletions

View File

@@ -116,7 +116,7 @@ func newFileWriter(c LogConf) (Writer, error) {
opts = append(opts, WithMaxSize(c.MaxSize))
}
opts = append(opts, WithLogRotationRuleType(c.RotationRuleType))
opts = append(opts, WithRotation(c.Rotation))
accessFile := path.Join(c.Path, accessFilename)
errorFile := path.Join(c.Path, errorFilename)