How to set log level in Winston/Node.js
If you are using the default logger, you can adjust the log levels like this: const winston = require(‘winston’); // … winston.level=”debug”; will set the log level to ‘debug’. (Tested with winston 0.7.3, default logger is still around in 3.2.1). However, the documentation recommends creating a new logger with the appropriate log levels and then … Read more