Thursday, 4 May 2017

Error logging?

So I've gone through my code and removed all the calls to console.log.In places where something should be logged or there is an error that I don't know how to handle I've put Winston in place.Now I'm wondering where I should store the logs? Ideally I'd have the ability to view all logs when needed, but have separate reports for warn and error level events. An email with error level items would also be helpful.How is everyone else handling their logging? What would you consider best practices?

Submitted May 04, 2017 at 06:50PM by fyzbo

No comments:

Post a Comment