easy2log
v1.0.1
Published
Simple colored logger with better performance using fs.appendFile.
Downloads
5
Readme
easy2log
Simple colored logger with better performance using fs.appendFile.
- Install
$ npm i easy2log
- Usage
const easy2log = require('easy2log');
log.info('logtext-info','test');
log.warn('logtext-warn','test');
log.info('logtext-error','test');
/*
[info] 2019-01-16 14:00:23 [test] logtext-info
[warn] 2019-01-16 14:00:23 [test] logtext-warn
[error] 2019-01-16 14:00:23 [test] logtext-error
*/
log.save()
//save log immediately