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
My current transport:
new WinstonDailyRotateFile({ dirname: "./var/log", filename: "service.log", datePattern: "YYYY-MM-DD", zippedArchive: true, maxSize: "1g", maxFiles: "30d", }),
This writes logs to ./var/log/service.log.%DATE%; how can I avoid this? Also, how can I specify a different directory for rotated logs?
./var/log/service.log.%DATE%
The text was updated successfully, but these errors were encountered:
@mattberther?
Sorry, something went wrong.
Your first question should be resolved with the following configuration:
filename: "service-%DATE%.log"
At this time, there is not a way to specify a different directory for rotated logs.
Is there any way to have the primary log be called just service.log?
Not at this time. You can track #23 for progress on that front.
No branches or pull requests
My current transport:
This writes logs to
./var/log/service.log.%DATE%
; how can I avoid this? Also, how can I specify a different directory for rotated logs?The text was updated successfully, but these errors were encountered: