{"size": 1251, "ext": "js", "max_stars_repo_path": "src/onBoot/logger/colors.js", "max_stars_repo_name": "bahtou/the-book-pundit-service", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/onBoot/logger/colors.js", "max_issues_repo_name": "bahtou/the-book-pundit-service", "max_issues_repo_issues_event_min_datetime": "2020-07-16T17:58:30.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T22:38:07.000Z", "max_forks_repo_path": "src/onBoot/colors.js", "max_forks_repo_name": "bahtou/the-book-pundit-apis", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 18.9545454545, "max_line_length": 31, "alphanum_fraction": 0.5123900879}
// Color Configuration
const cc = {
  sys: {
      reset: '\x1b[0m',
      bold: '\x1b[1m',
      dim: '\x1b[2m',
      italic: '\x1b[3m',
      underscore: '\x1b[4m',
      reverse: '\x1b[7m',
      strikethrough: '\x1b[9m',
      backoneline: '\x1b[1A',
      cleanthisline: '\x1b[K'
  },
  font: {
      black: '\x1b[30m',
      red: '\x1b[31m',
      green: '\x1b[32m',
      yellow: '\x1b[33m',
      blue: '\x1b[34m',
      magenta: '\x1b[35m',
      cyan: '\x1b[36m',
      white: '\x1b[37m',
  },
  bg: {
      black: '\x1b[40m',
      red: '\x1b[41m',
      green: '\x1b[42m',
      yellow: '\x1b[43m',
      blue: '\x1b[44m',
      magenta: '\x1b[45m',
      cyan: '\x1b[46m',
      white: '\x1b[47m'
  }
}

const logColors = {
  debug: {
    fontColor: cc.font.magenta,
    bgColor: cc.sys.reset,
    reset: cc.sys.reset
  },
  error: {
    fontColor: cc.font.red,
    bgColor: cc.sys.reset,
    reset: cc.sys.reset
  },
  fatal: {
    fontColor: cc.font.white,
    bgColor: cc.bg.red,
    reset: cc.sys.reset
  },
  info: {
    fontColor: cc.font.green,
    bgColor: cc.sys.reset,
    reset: cc.sys.reset
  },
  warn: {
    fontColor: cc.font.yellow,
    bgColor: cc.sys.reset,
    reset: cc.sys.reset
  }
};


module.exports = logColors;
