0.0.9 • Published 5 years ago

alvarocabreradam-logit v0.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Logit

Logit is a simple module to improve your application log.

Changelog

0.0.9 :

Now the module works for vanilla JavaScript.

0.0.9 :

Now the module prints objects properly.

Installation

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');

License

This project has ISC license.

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago