old_contents: const fs = require('fs');
  const winston = require('winston');
  const {createLogger, format, transports} = winston;
  
  const logger = createLogger({
    level: process.env.LOG_LEVEL || 'debug',
    format: format.combine(
        format.timestamp(),
        format.simple(),
    ),
    transports: [
      new transports.Console({
        format: format.combine(
            format.timestamp(),
            format.colorize(),
            format.simple(),
        ),
      }),
      new transports.Stream({
        stream: fs.createWriteStream('./omnium.log'),
      }),
    ],
  });
  
  module.exports = logger;
  
  
new_contents: const fs = require('fs');
  const winston = require('winston');
  const {createLogger, format, transports} = winston;
  
  const logger = createLogger({
    level: process.env.LOG_LEVEL || 'info',
    format: format.combine(
        format.timestamp(),
        format.simple(),
    ),
    transports: [
      new transports.Console({
        format: format.combine(
            format.timestamp(),
            format.colorize(),
            format.simple(),
        ),
      }),
      new transports.Stream({
        stream: fs.createWriteStream('./omnium.log'),
      }),
    ],
  });
  
  module.exports = logger;
  
  
subject: Revert to 'info' as default log level