0.0.2 • Published 11 years ago

route-analytics v0.0.2

Weekly downloads
4
License
-
Repository
github
Last release
11 years ago

route-analytics

A simple connect middleware module that logs requests and responses, transparently to the rest of your application.

usage

route-analytics uses the "winston" package to do its actual logging, so you can provide configuration according to that project's documentation. For example, all you need to do to add logging of requests and responses to the console is to add the properly configured middleware to Connect like this:

var winston = require( 'winston' );
		app.use( require( 'route-analytics' )( {
			transports: [
				new (winston.transports.Console)()
			]
		}));
0.0.2

11 years ago

0.0.1

11 years ago