This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

module-log

1.0.1 • Public • Published

module-log

Logger for Individual Node.js Module(s)

Travis Codecov Commitizen friendly npm

The idea is that you can set up the name of the module and use pre-defined logging functionalities for each individual module. In terminal window, the output of log statements is going to be according to file (or module) name(s).

Enhancement over normal ol' console.log().

Installation

$ npm install module-log --save

Usage

const log = require('module-log');

log.setFileName('server.js');
log.log('testing');
log.error('An error occurred!!!');

API

  • setFileName
    • To set File name of the module to show in console on every log output.
  • log
  • debug
  • error
  • warn
  • info

Readme

Keywords

none

Package Sidebar

Install

npm i module-log

Weekly Downloads

965

Version

1.0.1

License

MIT

Last publish

Collaborators

  • npm