Comparing version 0.1.3 to 0.1.4
@@ -254,2 +254,4 @@ var fs = require('fs'), | ||
this.params['REQUEST_URI'] = req.originalUrl; | ||
this.params['REQUEST_PATHNAME'] = req._parsedUrl ? req._parsedUrl.pathname : '-'; | ||
this.params['REQUEST_QUERY'] = req._parsedUrl ? req._parsedUrl.query : '-'; | ||
this.params['HOSTNAME'] = req.hostname; | ||
@@ -260,2 +262,3 @@ this.params['HTTP_HOST'] = req.headers.host; | ||
this.params['CONTENT_LENGTH'] = (res._headers || {})['content-length'] || '-'; | ||
this.params['BYTES_SENT'] = res.socket ? res.socket.bytesRead : 0; | ||
this.params['HEADERS'] = req.headers; | ||
@@ -262,0 +265,0 @@ this.params['pid'] = process.pid; |
{ | ||
"name": "yog-log", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "yog logger", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
73111
1292