A colorful logging utility to help you with Node.js application debugging
$ npm install orz-logit
const { LogIt, ErrorIt } = require('logIt');
2. Define the debug flag, title, mark and color (you can also set 'len' to change the length of repeating marks, default is 60):
const logIt = LogIt(true, { title: 'Test', mark:'=', color:'green' });
if (error) {
logIt(error);
}
const logIt = LogIt(false, { title: 'Test', mark:'=', color:'green' });
- black
- red
- green
- yellow
- blue
- magenta
- cyan
- white
- gray
- grey