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
I need to send logs to newrelic.
Currently I'm using the handleError function to send the errors using newrelic.noticeError.
For the logs, I've attached a custom stream function to morgan: const stream = { write: function (message) { newrelic.recordLogEvent({ message: message, level: "info" }) process.stdout.write(message) }, }
Is there a recommended approach that remix provides for the same?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to send logs to newrelic.
Currently I'm using the
handleError
function to send the errors usingnewrelic.noticeError
.For the logs, I've attached a custom stream function to morgan:
const stream = { write: function (message) { newrelic.recordLogEvent({ message: message, level: "info" }) process.stdout.write(message) }, }
Is there a recommended approach that remix provides for the same?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions