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

custom frequency (like x minutes) enhancement #200

Closed
kuddusic opened this issue Nov 19, 2018 · 1 comment
Closed

custom frequency (like x minutes) enhancement #200

kuddusic opened this issue Nov 19, 2018 · 1 comment

Comments

@kuddusic
Copy link

Hello Matt,

First of all, many thanks for this beautiful module.
I am using it for my logging server. I had needed custom intervals like 10 minutes. After searching solution and spending quite time, I cloned the repo and change line 84 from
frequency: 'custom',
to:
frequency: options.frequency ? options.frequency: 'custom' ,
So it can benefit from file-stream-rotator's feature. It works as expected even under high load.

if you think it is good idea, you can update it. I hope it helps somebody.

Best Regards,
Kuddusi Ciftcibasi

@mattberther
Copy link
Member

Thank you for the suggestion. Implemented and published as winston-daily-rotate-file@3.6.0.

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

No branches or pull requests

2 participants