We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looking to have a time-stamp on each file created (not just the rotated files). I've experiments with updating the file name formatting, such as
w := zapcore.AddSync(&lumberjack.Logger{ Filename: fmt.Sprintf("%s/dump-%v.log", logPath, time.Now().Format(time.RFC822)), MaxSize: maxSize, MaxBackups: maxBackUp, MaxAge: maxAge, })
but it appears to affect rotated file logging
The text was updated successfully, but these errors were encountered:
This maybe a limitation in the way openNew() calls the newname := backupName(name, l.LocalTime) .
openNew()
newname := backupName(name, l.LocalTime)
A better enhancement would be to just accept the log file prefix instead of log file name
Sorry, something went wrong.
No branches or pull requests
Looking to have a time-stamp on each file created (not just the rotated files). I've experiments with updating the file name formatting, such as
but it appears to affect rotated file logging
The text was updated successfully, but these errors were encountered: