Aditya Patel Aditya Patel - 1 year ago 311
Javascript Question

Setting up Sentry (Raven) with Sail.js

I am quiet new to sails.js and currently trying to integrate sentry with it. I read up the following tutorial on it.

But i am not able to register error on sentry if i use patchGlobal command, it works on local errors when i declare it env/production file but if i define it in other places it doesn't even register local errors.

I also tried integrating it as a middleware but i am not able to integrate it correctly since the link they have provided is for express.

Any help would be really appreciated !


Answer Source

In the end , i was able to use Winston to log errors using Sentry in Sails. Following is the link:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download