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

Rotate filename format #79

Closed
jujuchang opened this issue May 17, 2017 · 3 comments
Closed

Rotate filename format #79

jujuchang opened this issue May 17, 2017 · 3 comments

Comments

@jujuchang
Copy link

datePattern can and will only prepend at the beginning of the filename. Something like 'dev-2017-05-17-apps.log' can't be done. Please allow users to determine the filename format on where to place the date.

@sandman45
Copy link

Yea this would be awesome. We want to do this idt-2017-01-10.log but i cannot as it is currently

@jujuchang
Copy link
Author

I have overwritten some of the winston functions to achieve this.

@mattberther
Copy link
Member

Some long-overdue refactoring of the transport has occured. A PR is available at #107. Also, a pre-release version has been published to npm.

A key feature of the refactoring is that you can now put %DATE% anywhere in your filename. Also, momentjs formats are used so you have much more control over the final filename. Review the PR to see the updated options.

Please npm install [email protected] and reopen this issue if the problem remains.

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

No branches or pull requests

3 participants