client_track
v1.0.5
Published
A simple clients tracker for express servers
Downloads
4
Readme
Client_track
A simple client tracker for express servers
Install:
$ npm install client_track
Require:
var format = require('client_track')
Example:
var express = require('express'),
client_track = require('client_track');
app = express();
app.set('port', 8080); // Listening port
// Getting '/'
app.get('/', function(req, res){
client_track.reqlog(req); // Log the req data
res.send('hello world');
});
// Listening
app.listen(app.get('port'), function(){
console.log("Listening on port: ", app.get('port'));
});