https://github.com/ContentMine/quickscrape
Revision cc3879e05c3895d79a5842ce558fd47b428b2617 authored by Richard Smith-Unna on 31 March 2015, 09:06:28 UTC, committed by Richard Smith-Unna on 31 March 2015, 09:06:28 UTC
1 parent 9e36288
Raw File
Tip revision: cc3879e05c3895d79a5842ce558fd47b428b2617 authored by Richard Smith-Unna on 31 March 2015, 09:06:28 UTC
fix error when missing log message
Tip revision: cc3879e
loglevels.js
var log = module.exports;

log.levels = {
  silly: 0,
  input: 1,
  verbose: 2,
  prompt: 3,
  debug: 4,
  data: 5,
  info: 6,
  help: 7,
  warn: 8,
  error: 9
};

log.colors = {
  silly: 'magenta',
  input: 'grey',
  verbose: 'cyan',
  prompt: 'grey',
  debug: 'blue',
  info: 'green',
  data: 'grey',
  help: 'cyan',
  warn: 'yellow',
  error: 'red'
};
back to top