Skip to content

Simple colored logger with better performance using fs.appendFile.

Notifications You must be signed in to change notification settings

oaks21/easy2log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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


About

Simple colored logger with better performance using fs.appendFile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published