Goal
As a engineer, I want to be able to look at my monitoring systems to make sure nothing is broken and set up alerts. For example, if database is down for some reason, I should get alerted right away.
If a user reports an issue, I should be able to look at the logs and figure out what the issue is.
Basic Requirements
Logging module must support these features:
logger.error(....)
logger.log(...)
For now our logging module can just use console.log or console.error
Research
- Figure out which monitoring systems to use.
- Figure out if there is an existing logger (like winston) that already does this so we don't have to build our own logging system.
- Suggestion Multer
Acceptance criteria
Goal
As a engineer, I want to be able to look at my monitoring systems to make sure nothing is broken and set up alerts. For example, if database is down for some reason, I should get alerted right away.
If a user reports an issue, I should be able to look at the logs and figure out what the issue is.
Basic Requirements
Logging module must support these features:
For now our logging module can just use
console.logorconsole.errorResearch
Acceptance criteria
Must log each file name automatically using closure:const log = require('./log')(__filename)Supportlog,warn,errorerroris used for alerts.warnis used for analysis.logis informational and debuggingpgmodule to use logger module: https://github.com/garageScript/databases/pull/2/files