colorful-logs
v0.1.2
Published
Simple override for console logs with time stamp and colors.
Downloads
6
Maintainers
Readme
colorful-logs
This is a simple node module for overriding console
method which in this way changes to format as seen in the example in below
Install
By just simply following npm default installation
npm install colorful-logs
Usage
Usage is simple and fairly straight forward as it overrides console methods
require colorful-logs
into script...
require('colorful-logs');
...then simply use console log methods like this:
console.log('Your default logging!');//Colored White just added timestamp
console.warn('Your warning message!');//Colored Yellow
console.info('Your info message!');//Colored Blue
console.success('Your success message!');//Custom added method based on log() method - Colored green
console.error('Your error message!');
...Which will result in this format: