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
I'd like to add custom field in logs collection, but it's not written in DB. Any suggestion?
const metaFormat = winston.format((info) => { return { ...info, app: 'test' }; }); const transports = [ new winston.transports.MongoDB({ db: process.env.MONGODB_CONNECTION, options: { useUnifiedTopology: true, }, collection: 'logs', format: winston.format.combine( metaFormat(), winston.format.json(), ), }), ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'd like to add custom field in logs collection, but it's not written in DB. Any suggestion?
The text was updated successfully, but these errors were encountered: