{"size": 443, "ext": "js", "max_stars_repo_path": "utils/log.js", "max_stars_repo_name": "Larrycoin/arbitrage.js", "max_stars_repo_stars_event_min_datetime": "2018-06-08T15:18:35.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-28T20:02:15.000Z", "max_issues_repo_path": "utils/log.js", "max_issues_repo_name": "ynx0/arbitrage.js", "max_issues_repo_issues_event_min_datetime": "2018-06-08T11:58:44.000Z", "max_issues_repo_issues_event_max_datetime": "2020-08-09T15:07:08.000Z", "max_forks_repo_path": "utils/log.js", "max_forks_repo_name": "ynx0/arbitrage.js", "max_forks_repo_forks_event_min_datetime": "2018-06-08T14:50:05.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-17T11:11:25.000Z"}
{"max_stars_count": 58, "max_issues_count": 11, "max_forks_count": 12, "avg_line_length": 19.2608695652, "max_line_length": 60, "alphanum_fraction": 0.5959367946}
/**
 * @since 03.02.16
 * @author Skurishin Vladislav
 */
const winston = require("winston");

// can be much more flexible than that O_o
function getLogger (module) {
  let path = module.filename.split("/").slice(-2).join("/");

  return new winston.Logger({
    transports: [
      new winston.transports.Console({
        colorize: true,
        level:    "debug",
        label:    path
      })
    ]
  });
}

module.exports = getLogger;
