Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

axxer

imvsharma12ISC1.0.2

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

logs, logger, winston, logging, textLogger, consoleLogger, FileLogger, winston-mongodb, winston-daily-rotate-file

readme

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'))