You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
309 B

  1. "use strict";
  2. var winston = require('winston');
  3. module.exports = (isDebug) => {
  4. winston.remove(winston.transports.Console);
  5. winston.add(winston.transports.Console, {
  6. level: (isDebug) ? 'info' : 'warn',
  7. prettyPrint: true,
  8. colorize: true,
  9. silent: false,
  10. timestamp: true
  11. });
  12. return winston;
  13. };