| Right now there is no agreed upon approach to logging in the data-sync-server. Some console.log statements are scattered around but that's about it. We need a logging library that can do the following:
- Request logging middleware for express
- A logger with all the standard methods that can be used across the app (warn, info, debug, error)
- Preferably the ability to output logs as json (for prod) and in something more human readable for local dev
- Log level can be configured with an environment variable.
It's just a suggestion but I've found that the pino logger is a great, ultra-fast library that implements the same API as bunyan. It also has an express middleware: https://www.npmjs.com/package/express-pino-logger |