0.0.2 • Published 8 months ago

slashtags-logger v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Slashtags logger

Implementation details:

It relies on debug.

Installation

npm install slashtags-logger

Usage:

Application:

Supported log levels:

  • debug
  • err/error
  • info
  • warn/warning
  • fatal

Instantiation and invocation:

const log = require('slashtags-logger')('<your app name here>', '[file name here]')

log.info('info')
log.err('error') // log.error('error')
log.debug('debug')
log.warn('warning') // log.warning('warning')
log.fatal('fatal')

Execution:

The loglevel is defined by env variable DEBUG.

DEBUG=* node index.js
0.0.2

8 months ago