You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add winston-newrelic-agent-transport to transport documentation (#2382)
* Add New Relic Agent Transport entry.
* Add description of options.
* Adjust code example style to better match other transports. Adjust description to match transport repo changes.
---------
Co-authored-by: David Hyde <DABH@users.noreply.github.com>
The New Relic agent typically automatically forwards Winston logs to New Relic when using CommonJS. With CommonJS no additional transport should be needed. However, when using ECMAScript modules, the automatic forwarding of logs can with certain coding patterns not work. If the New Relic agent is not automatically forwarding your logs, this transport provides a solution.
658
+
659
+
Options:
660
+
661
+
*__level__ (optional): The Winston logging level to use as the maximum level of messages that the transport will log.
662
+
*__rejectCriteria__ (optional): The rejectCriteria option allows you to specify an array of regexes that will be matched against either the Winston info object or log message to determine whether or not a log message should be rejected and not logged to New Relic.
663
+
642
664
### Papertrail Transport
643
665
644
666
[winston-papertrail][27] is a Papertrail transport:
@@ -992,3 +1014,4 @@ That's why we say it's a logger for just about everything
0 commit comments