mt-console-logger
v1.0.2
Published
A module for prettier, colorized console log
Downloads
1
Readme
Console Logger
A module for prettier console log. Displays time and other information. Log can vary in color.
Installation
npm install mt-console-logger --save
Usage
var consoleLogger = require('mt-console-logger')
consoleLogger('index', 'Server running at port 3000', 'red');
//=> [2018-10-24T21:18:11+02:00] (3220) index: Server running at port 3000
//=> with "index" in red color
consoleLogger('title_of_event', 'Message to display');
//=> [2018-10-24T21:18:11+02:00] (3220) index: Server running at port 3000
//=> with "index" in default white color
You can use all colors from https://www.npmjs.com/package/colors
License
ISC