EYBlockchain / timber

Construct a Merkle Tree database from Ethereum logs.
Other
67 stars 19 forks source link

Improve logging - use Winston logger throughout #20

Closed iAmMichaelConnor closed 3 years ago

iAmMichaelConnor commented 4 years ago

There is a basic Winston logger file in src/middleware/logger.js, but console.log is being used throughout, causing overly verbose logging.

Use logger throughout (carefully choosing the logging type: info, error, warn, debug, verbose, http, silly, etc.

Log level should be set through a process.env variable.

Note: there's a Mongoose logging setting in logger.js. Keep it, but have it reflect the log level env variable setting.