Exclusive logging for nodejs, expressjs, sailsjs, restify, meanjs and many other nodejs based applications.
elogger is an exclusive logging middleware framework for different kind of nodejs application, which can be used either as an middleware or simple module. It reuses power & flexibility of morgan (https://www.npmjs.com/package/morgan) for HTTP logging. Find different examples below. ``` $ npm install elogger ``` ``` var loggingtype = 'combined'; var express = require('express'), elogger = require('elogger');app.use(elogger(loggingtype));
<p>Supported logging types: null, 'combined', 'common', 'tiny'</p>
<h6>For NodeJS command-line applications:</h6>
var logger = require('elogger');
logger.debug('My First Debug Test'); logger.info('My Second Info Test'); logger.warn('My Third Warn Test'); logger.error('My Fourth Error Test'); logger.trace('My Fifth Trace Test');