axxer
v1.0.2
Published
Just call the functions of this logger nothing else. No configuration, No headache.
Downloads
14
Maintainers
Readme
Axxer
Just call the functions of this logger nothing else. No configuration, No headache.
Installing
npm install --save axxer
Usage
- Require axxer in your project.
const axxer = require('axxer');
- Set the location of logs. If you are using fileLogger() or textLogger()
const options = {
dir: 'logs'
}
- Intialisation of axxer logger.
const logger = new axxer.Logger(options);
- Call the logger function like fileLogger()
logger.fileLogger('error', new Error('there is new error'))