slashtags-logger
v0.0.2
Published
logging library
Downloads
1
Readme
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