awesome-log

0.1.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    3
  • 0.1.1
    3
  • 0.1.0
    3

Package Sidebar

Install

npm i awesome-log

Weekly Downloads

9

Version

0.1.2

License

MIT

Last publish

Collaborators

  • stephen.k