logger4javascript
v1.4.3
Published
Creates logs with Node Js
Downloads
7
Maintainers
Readme
logger4javascript
A simple logger to get daily logs of your application.
How to use this package
Example:
- const logger4javascript = require('logger4javascript');
- For success responses
- logger4javascript.info('You are testing logger4javascript package for SUCCESS RESPONSE');
- For failure responses
- logger4javascript.error('You are testing logger4javascript package for ERROR RESPONSE');
After using this:
✅ A new /logs 📂 folder will be created where your main (server.js or index.js) files belongs.
And respones would look like this:
Fri 2022-1-21 - 8:41 pm : [info] You are testing logger4javascript package for SUCCESS RESPONSE
Fri 2022-1-21 - 8:27 pm : [error] You are testing logger4javascript package for ERROR RESPONSE
- Why Should I Use logger4javascript?🤔
- Simple answer 😀 it is very easy to use logger4javascript, you just need to write 1 line.