-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
日志文件设置最大行数并按照year切割后,日志会输出到之前按照日期切割出的文件中 #5
Comments
我也遇到这个问题了 |
看了代码,发现是理解错了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fileConfig := &go_logger.FileConfig{ LevelFileName: map[int]string{ Logger.LoggerLevel("error"): fmt.Sprintf("%s/file.log", logDir), Logger.LoggerLevel("info"): fmt.Sprintf("%s/file.log", logDir), Logger.LoggerLevel("debug"): fmt.Sprintf("%s/file.log", logDir), }, MaxSize: 0, MaxLine: 1000000, DateSlice: "y", JsonFormat: false, Format: logFormat, }
设置如上, 发现一个奇怪的问题4月9号的日志输出到了切割出的4月2号的文件中。
The text was updated successfully, but these errors were encountered: