Recent | Popular
#errorhandling #winston
const logger = require('../libs/Logger') module.exports = function(err, req, res, next){ if (err) { logger.error(err); } return res.status(500).json({error: 'Something went wrong'}); }
Wed Dec 22 2021 18:48:49 GMT+0000 (Coordinated Universal Time) https://github.com/gkoniaris/blog/tree/master/logging-tutorial