Skip to content

stephenkingsley/awesome-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logger

this is nodejs logger component. It's faster, light and easy to use!

how to ues

first

npm i --save awesome-log

and your project

const awesomeLogger = require('awesome-log');

awesomeLogger({
  firename: 'myLogger',
  mkdir: 'youForgetIt',
  logger: 'this logger is null, maybe you forget it!'
});

feature

this component will create file by hours.

for example, now is 18:01. if a user request your app, this component will create a myLogger.log file. and then 19:00 also had a user request you app, this component will modify myLogger.log become myLogger_2016082618.log, and create a new myLogger.log file.

and next version, I will provide a parameter to custom time that modify the old logger file and create a new file.

About

nodejs logger, small and faster, and change file name one hour

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published