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
We're using the Winston daily logger like so:
const transport = new (winston.transports.DailyRotateFile)({ datePattern: 'YYYYMMDD-HH0000000', filename: process.env.COMPUTERNAME + '_www_H%DATE%.log', dirname: logFolder, maxFiles: '14d', utc: true }); const webLogger = winston.createLogger({ transports: [ transport ] });
However, it's not deleting old log files (our server name is [A-Z]{6}\d\d[A-Z]-[A-Z]{3}-\d\d, if that makes a difference):
[A-Z]{6}\d\d[A-Z]-[A-Z]{3}-\d\d
I would expect that all old log files that match the datePattern and filename would be deleted.
datePattern
filename
Environment:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We're using the Winston daily logger like so:
However, it's not deleting old log files (our server name is
[A-Z]{6}\d\d[A-Z]-[A-Z]{3}-\d\d
, if that makes a difference):I would expect that all old log files that match the
datePattern
andfilename
would be deleted.Environment:
The text was updated successfully, but these errors were encountered: