const fs = require('fs');
const winston = require('winston');
const { createLogger, format, transports } = winston;

const logger = createLogger({
  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;


const fs = require('fs');
const winston = require('winston');
const {createLogger, format, transports} = winston;

const logger = createLogger({
  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;


Fix ESLint violations in logger
Fix ESLint violations in logger
