Log everything with style!
npm install alvarocabreradam-logitbash
npm install alvarocabreradam-logit
`
Usage
Vanilla JavaScript
`
const Logit = require('alvarocabreradam-logit');
const logit = new Logit('App Name');
`
TypeScript
`
import Logit from 'alvarocabreradam-logit';
const logit: Logit = new Logit('App Name');
`
Functions
`
// Enable logs
logit.active();
`
`
// Change the log header for the specified string
logit.setHeader('logit');
`
`
// Enable show date time in log
logit.enableDate();
`
`
// Enable show time in ms since the program was started
logit.enableTimer();
`
`
// Clasic white log
logit.info('Info');
// Green log
logit.success('Info');
// Red log
logit.error('Info');
// Yellow log
logit.warning('Info');
``