Skip to content
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

Keep original file extension when rotation occurs (e.g. .error files) #161

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

e-dot
Copy link

@e-dot e-dot commented Aug 28, 2020

Handle file extension properly : if the extension is not .log, use the same extension for rotated files (e.g. if you rotate .error file, it will keep the .error extension).

Handle file extension properly : if the extension is not .log, use the same extension for rotated files (e.g. if you rotate .error file, it will keep the .error extension).
@e-dot
Copy link
Author

e-dot commented Aug 28, 2020

I'm using logrotate to rotate .log and .err files ; keeping the file extension unchanged when rotation occurs is a must-have for our team.

E.

@e-dot e-dot changed the title Update app.js Keep original file extension when rotation occurs (e.g. .error files) Aug 28, 2020
@xioustic
Copy link

xioustic commented Sep 2, 2022

any reason this either wasn't pulled in or has regressed back out of the code? the current install i have has been bulldozing my .err files by renaming them .log, which is usually then overwritten by the stdout .log file that follows. i dropped this diff in manually and it seemed to fix things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants