Closed iAmMichaelConnor closed 3 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.
src/middleware/logger.js
console.log
Use logger throughout (carefully choosing the logging type: info, error, warn, debug, verbose, http, silly, etc.
logger
info, error, warn, debug, verbose, http, silly, etc
Log level should be set through a process.env variable.
process.env
Note: there's a Mongoose logging setting in logger.js. Keep it, but have it reflect the log level env variable setting.
logger.js
There is a basic Winston logger file in
src/middleware/logger.js
, butconsole.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.