Skip to content

Commit

Permalink
db filter generate file pdf excel
Browse files Browse the repository at this point in the history
  • Loading branch information
DrOctavius committed Apr 7, 2022
1 parent a670bf9 commit b934325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/logger/constructor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package logger

import (
"github.com/kyaxcorp/go-core/core/helpers/conv"
"github.com/kyaxcorp/go-core/core/helpers/filesystem"
"github.com/kyaxcorp/go-core/core/helpers/file"
"github.com/kyaxcorp/go-core/core/helpers/io/writer"
"github.com/kyaxcorp/go-core/core/logger/application/vars"
"github.com/kyaxcorp/go-core/core/logger/config"
Expand Down Expand Up @@ -172,7 +172,7 @@ func getFileHandler(config config.Config) io.Writer {
if config.FileName != "" {
fileName = config.FileName
}
fullFilePath := filesystem.FilterPath(path.Join(config.DirLogPath, fileName))
fullFilePath := file.FilterPath(path.Join(config.DirLogPath, fileName))
writersByFileFullPathLock.Lock()
defer writersByFileFullPathLock.Unlock()
if _writer, ok := writersByFileFullPath[fullFilePath]; ok {
Expand Down Expand Up @@ -200,7 +200,7 @@ func newRollingFile(config config.Config) io.Writer {
}

return &writer.Logger{
Filename: filesystem.FilterPath(path.Join(config.DirLogPath, fileName)),
Filename: file.FilterPath(path.Join(config.DirLogPath, fileName)),
MaxBackups: config.FileRotateMaxFiles, // files
MaxSize: config.FileLogMaxSize, // megabytes
MaxAge: config.FileMaxAge, // days
Expand Down

0 comments on commit b934325

Please sign in to comment.