1.0.2 • Published 6 years ago

mt-console-logger v1.0.2

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

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

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago