node-logkit
A minimal logger for node cli.
Installation
This package is available on npm as logkit
.
npm install logkit
API
Load the logger by using require
var l = require('logkit');
Choose the log level.
l.level = 'verbose'
You can use error, warning (default) or verbose.
Let's print your stuffs.
l.e('An error message'); // Tue Apr 28 2015 22:19:30 GMT+0200 (CEST): [error] An error message
l.w('A warning message'); // Tue Apr 28 2015 22:20:21 GMT+0200 (CEST): [warning] A warning message
l.v('A message'); // Tue Apr 28 2015 22:20:53 GMT+0200 (CEST): [verbose] A message