From ff4bb14225d9d36d3e59dae023285d1844cb3d91 Mon Sep 17 00:00:00 2001 From: c-ab Date: Sun, 30 Dec 2012 14:16:26 -0800 Subject: [PATCH] Updated Routing proxy with access logging (markdown) --- Routing-proxy-with-access-logging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Routing-proxy-with-access-logging.md b/Routing-proxy-with-access-logging.md index 0a0f36b..647b15d 100644 --- a/Routing-proxy-with-access-logging.md +++ b/Routing-proxy-with-access-logging.md @@ -15,7 +15,7 @@ One of the useful methods of running http-proxy is as a routing proxy. The follo router.proxyRequest(req,res); }); - proxy.listen(3000, function() { console.log("Routing proxy listening on " + proxy.addresss().port); }); + proxy.listen(3000, function() { console.log("Routing proxy listening on " + proxy.address().port); }); the above example uses console.log, but you could use any logging library, e.g. winston, to create access logs with info from req and res.