Closed
Description
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
Must log each file name automatically using closure:const log = require('./log')(__filename)
Supportlog
,warn
,error
error
is used for alerts.warn
is used for analysis.log
is informational and debugging
- Send a PR to change
pg
module to use logger module: https://github.com/garageScript/databases/pull/2/files
Metadata
Metadata
Assignees
Labels
No labels