-
Notifications
You must be signed in to change notification settings - Fork 11
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,errorerroris used for alerts.warnis used for analysis.logis informational and debugging
- Send a PR to change
pgmodule to use logger module: https://github.com/garageScript/databases/pull/2/files
Metadata
Metadata
Assignees
Labels
No labels