ministryofjustice/courtfinder-search — pull request #69 by cfq (2014-11-05 15:28:27+00:00)
Title: Added request logging

Added a middleware that logs every requests.

The logs are in the following format:

{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2210.0 Safari/537.36",
"time": "2014-11-05 15:25:50",
"post": {},
"path": "/search/results",
"fullPath": "/search/results?aol=Civil+partnership&postcode=e2+6qw",
"get": {
"aol": "Civil partnership",
"postcode": "e2 6qw"
},
"ipAddress": "127.0.0.1",
"method": "GET"
}