1.0.2 • Published 5 years ago

axxer v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Axxer

Just call the functions of this logger nothing else. No configuration, No headache.

Installing

npm install --save axxer

Usage

  1. Require axxer in your project.
const axxer = require('axxer');
  1. Set the location of logs. If you are using fileLogger() or textLogger()
const options = {
    dir: 'logs'
}
  1. Intialisation of axxer logger.
const logger = new axxer.Logger(options);
  1. Call the logger function like fileLogger()
logger.fileLogger('error', new Error('there is new error'))