logup
v0.0.4
Published
Beautiful console log (using logdown) with placeholders
Downloads
3
Readme
logup
Beautiful console log (using logdown) with placeholders.
How to use
$ npm install logup --save
After in your project:
var Logup = require('logup');
var logup = new Logup('server');
logup.log('started at port *%s* in *%s* mode', 3000, development);
logup.log('API `%s` is *%s*', 'uapi', 'mocked');
logup.log('API `%s` is *%s*', 'authapi', 'mocked');
You can use methods:
var Logup = require('logup');
var logup = new Logup('server');
logup.log('started at port *%s* in *%s* mode', 3000, development);
logup.warn('API `%s` is *%s*', 'uapi', 'mocked');
logup.info('API `%s` is *%s*', 'uapi', 'real');
logup.error('API `%s` is *%s*', 'authapi', 'mocked');