Level Logger
![Build Status](https://travis-ci.org/DieProduktMacher/level-logger.svg?branch=master)
![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)
A simple logger module wrapping the debug
module.
It generates an object containing logging functions provided through the debug
for the following log levels:
prefixing the module name with the corresponding <log level>:
For convenience reasons the generated object also holds a reference to console.trace
.
Installation
npm install level-logger
Usage
const log = require('level-logger')('my-module')
log.debug('debug message')
log.info('info message')
log.warn('warning message')
log.error('error message')
log.fatal('fatal message')
License
MIT