Another console log wrapper with colored support and icons
npm install clix-logger

``bash`
npm i -g clix-logger
`javascriptsubtle
var options = {
// Will print the messages using chalk colors. default is false
coloredOutput: false,
// Will suppress the output of and log methods`
// all of the others will still be printed
quiet: false // default is false,
};
var logger = require('clix-logger')(options);
logger.log('some', 'message', 'here');
- ok(arg1[, arg2, ...argn] )subtle(arg1[, arg2, ...argn] )
- log(arg1[, arg2, ...argn] )
- success(arg1[, arg2, ...argn] )
- error(arg1[, arg2, ...argn] )
- print(arg1[, arg2, ...argn] )
-
NOTES:
- All the methods above use console.log to print the messages, except the error one, which uses console.error.subtle
- and log are suppressed when options.quiet is specified.print
- does not have an icon at the beginning of the line
the following code
`javascript
var logger = require('clix-logger')({ coloredOutput: true });
Will produce this output: