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
Hi!
I was try to use pm2-logrotate with that params
And it work fine, exclude one thing, - every new minutecreating new empty logfile and write new portion from main log file.
I am not familiar with pm2-logrotate code, but i found code that looks like can fixing that befavior.
--var writeStream = fs.createWriteStream(final_name, {'flags': 'w+'}); ++var writeStream = fs.createWriteStream(final_name, {'flags': 'a+'});
just change w+ to a+, i think it will logical. It will append one more portion of log file and not dangerous to delete useful information.
w+
a+
Thanks a lot!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
I was try to use pm2-logrotate with that params
And it work fine, exclude one thing, - every new minutecreating new empty logfile and write new portion from main log file.
I am not familiar with pm2-logrotate code, but i found code that looks like can fixing that befavior.
just change
w+
toa+
, i think it will logical. It will append one more portion of log file and not dangerous to delete useful information.Thanks a lot!
The text was updated successfully, but these errors were encountered: