-
Notifications
You must be signed in to change notification settings - Fork 769
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
dateFile misleading parameter daysToKeep #1080
Closed
chienfuchen32 opened this issue
May 20, 2021
· 2 comments
· Fixed by log4js-node/streamroller#78 or #1135
Closed
dateFile misleading parameter daysToKeep #1080
chienfuchen32 opened this issue
May 20, 2021
· 2 comments
· Fixed by log4js-node/streamroller#78 or #1135
Milestone
Comments
I agree, "daysToKeep' should actually be renamed to "filesToKeep". |
It's renamed to process.emitWarning(
"options.daysToKeep is deprecated due the confusion it causes when used " +
"together with file size rolling. Please use options.numBackups instead.",
"DeprecationWarning", "StreamRoller0001"
); |
aocm
added a commit
to aocm/vue3-express-ssr-sample
that referenced
this issue
Apr 15, 2022
log4js-node/log4js-node#1080 ``` (node:38719) [streamroller-DEP0001] DeprecationWarning: options.daysToKeep is deprecated due to the confusion it causes when used together with file size rolling. Please use options.numBackups instead. ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I've tried to use log4js
dateFile
recently.dateFile Document
When I test a logger like the example,
after a while, its behavior like rotating with numbers of archives.
Then I check the source code of dateFile, it implement DateRollingFileStream form streamroller,
and I look into DateRollingFileStream,
DateRollingFileStream inherit from RollingFileWriteStream which provide cleaning up mechanism based on numToKeep
I think it's kind of confusing documentation... or if there's a plan that
streamroller
implement file rotation based on file modified time or datetime naming rule in the future?Thank you. :D
The text was updated successfully, but these errors were encountered: