Need to log errors in file and to handle exception - nodejs

61 views
Skip to first unread message

prem Kumar

unread,
Apr 16, 2015, 9:14:52 AM4/16/15
to nod...@googlegroups.com
Hi,

I am new to nodejs and am using express(4.10.7) framework in my project. I need to log all errors in local file and to handle exception. Currently, if any error occurs, server stopped. So, need to start again. How can we overcome this. Please guide me to solve this issue. Any predefined modules to achieve this which connects express framework.
Also, sometime timeout error occurs.




Thanks,

Premkumar M.

Francesco Cioffi

unread,
Apr 16, 2015, 11:27:58 AM4/16/15
to nod...@googlegroups.com
Hi Premkumar,

Welcome. Maybe you can look: https://github.com/foreverjs/forever

I think It resolve both your issues.


Thanks,
FC

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/62e3b25c-d99e-4820-a6e7-159bff3dec9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Francesco Cioffi
Computer engineer
http://www.fcioffi.net

prem Kumar

unread,
Apr 17, 2015, 10:10:04 AM4/17/15
to nod...@googlegroups.com
Hi Francesco,

Thanks for your reply.. I will try to implement the same..

Thanks,
Premkumar.

Rajaggan

unread,
Apr 22, 2015, 9:47:14 AM4/22/15
to nod...@googlegroups.com
Domains in nodejs are pretty good!
Reply all
Reply to author
Forward
0 new messages