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
Right now this is the way to init the transports
var logger = new (winston.Logger)({ transports: [ /* ... */ ] });
It would be nice to use it with the add function of winston logger
logger.add(ddTransport, { /* options */ });
This could be useful if conditionally add logger or adding logger later as required ... Thanks
The text was updated successfully, but these errors were encountered:
You can do:
const ddTransport = new DatadogTransport({ api_key: 'xx', app_key: 'yy' }); winston.add(ddTransport, null, true);
Last parameter indicates that transport has already been instantiated.
Sorry, something went wrong.
Yeah I had the same question. Suggestion above worked for me.
No branches or pull requests
Right now this is the way to init the transports
It would be nice to use it with the add function of winston logger
logger.add(ddTransport, { /* options */ });
This could be useful if conditionally add logger or adding logger later as required ...
Thanks
The text was updated successfully, but these errors were encountered: