Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging System #8

Open
Chris911 opened this issue Sep 17, 2012 · 0 comments
Open

Logging System #8

Chris911 opened this issue Sep 17, 2012 · 0 comments
Assignees

Comments

@Chris911
Copy link
Owner

Problem

We really need a solid logging system that will help us debug. Node JS crashes if an exception is not properly handled leaving us with little information about problems and how to fix them. Logging all events with proper message levels and meaningful information is a must.

Solution

  • Use Winston logging module
  • Remove all console.log() calls
  • Use Winston to log unhandled exceptions
  • Define log messages structure and level (eg, info, warning, error, critical)
  • Use only one system. No logging here and there.. All should be handle via the same logger.

Extra

  • Make logging level configurable per module
  • Email notification when an exception is thrown
@ghost ghost assigned Chris911 and Diastro Sep 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants