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

DailyRotateFile transport: availability to prepend formatted date to log name #585

Closed
wants to merge 4 commits into from

Conversation

ArnauAregall
Copy link

Hello,

I'm using winston in a project where is preferable that log files had the rolling date prepended instead of appended to the log name, so I added an option (prepend) to be available to configure this (the formatted date-time is still appended by default).

I hope you find it useful!

ArnauAregall and others added 2 commits March 21, 2015 23:20
@indexzero
Copy link
Member

Please conform to https://github.com/indexzero/styleguide

@ArnauAregall
Copy link
Author

Didn't see the trailing whitespaces in my editor, just removed them.
@indexzero is the code conforming to the mentioned style guide?

@indexzero
Copy link
Member

It is now, but may conflict with #505 so we need to investigate.

@indexzero
Copy link
Member

Thank you for your contribution As of winston@2.0.0 this transport is now a stand-alone module: winston-daily-rotate-file. Please reopen this PR. We have opened a tracking issue there to ensure it is reviewed appropriately.

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