-
Notifications
You must be signed in to change notification settings - Fork 157
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
"maxDays" option doing nothing #91
Comments
can you put somthing like this.. if maxDays > 0 |
Some long-overdue refactoring of the transport has occurred. A PR is available at #107. Also, a pre-release version has been published to npm. With the new version, you can use Please |
maxFiles not working for meIt is not even generating log file `var winston = require('winston'); const transport = new winston.transports.DailyRotateFile({ |
@ChanchalChandanbatwe Can you please post a complete example, including the logging statements, that reproduce this issue? Thank you. |
i got options like
{
"name": "DailyRotateFile",
"options": {
"datePattern": "yyyy-MM-dd.",
"prepend": true,
"zippedArchive": false,
"level": "debug",
"colorize": false,
"timestamp": true,
"filename": "./logs/log.txt",
"maxsize": 10485760,
"maxFiles": 5,
"maxDays": 10,
"json": false
}
}
and i get files in /logs
2017-09-08.log.txt
2017-09-09.log.txt
2017-09-10.log.txt
2017-09-11.log.txt
2017-09-12.log.txt
2017-09-13.log.txt
2017-09-14.log.txt
2017-09-15.log.txt
2017-09-16.log.txt
2017-09-17.log.txt
2017-09-18.log.txt
2017-09-19.log.txt
2017-09-20.log.txt
and each day i got +1 file.. why "maxDays" is not working? I did not find any mention in the code
The text was updated successfully, but these errors were encountered: