|
|
|
@ -31,6 +31,15 @@ var typeColors = { |
|
|
|
|
'PIN': chalk.reset.bold.yellow, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
var verbosity = [ |
|
|
|
|
[], |
|
|
|
|
['error'], |
|
|
|
|
['error', 'warn', 'success'], |
|
|
|
|
['info', 'error', 'warn', 'success', 'time', 'timeEnd'] |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
var ENV_VERBOSITY = process.env.VERBOSITY || 2; |
|
|
|
|
|
|
|
|
|
[ |
|
|
|
|
{ |
|
|
|
|
name: "info", |
|
|
|
@ -102,6 +111,9 @@ var typeColors = { |
|
|
|
|
|
|
|
|
|
console[item.name] = function () |
|
|
|
|
{ |
|
|
|
|
if(verbosity[ENV_VERBOSITY].indexOf(fnName) === -1) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
var args = Array.prototype.slice.call(arguments); |
|
|
|
|
var type = null, |
|
|
|
|
sign, |
|
|
|
|