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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi, when using the transport like this:
return new ((winston.transports as any).DailyRotateFile)({ filename: 'service-%DATE%.log', datePattern: 'DD-MM-YYYY', dirname: logFolder, zippedArchive: false, maxSize: '10m', maxFiles: '14d' });
and a custom winston format:
winston.format.printf(({ level, message, label, timestamp }) => `${timestamp} ${level} [${label}]: ${message}`)
the output log file only contains lots of "undefined"
The text was updated successfully, but these errors were encountered:
printf takes an info object. Perhaps you're looking for:
printf
winston.format.printf(info => `${info.timestamp} ${info.level} [${info.label}]: ${info.message}`)
Sorry, something went wrong.
I don't think that is my issue. In fact, my callback function uses a deconstructor to receive those properties.
This printf usage does work. I use a console transport along with the transport of this package and my console output is as expected.
Edit: Just tested you version. No difference. That is not the issue
Sorry, I completely removed my format and used the default one and then it works.
No branches or pull requests
Hi, when using the transport like this:
and a custom winston format:
the output log file only contains lots of "undefined"
The text was updated successfully, but these errors were encountered: