Closed maddox closed 9 years ago
This adds logging. Every http request will be logged out now.
In production it logs out to log/production.log and in dev it logs to stdout.
log/production.log
logs look like this:
'[2015-08-13T18:51:45.769Z] - ::ffff:127.0.0.1 - GET /airplay_devices 200 103.442 ms - 979b'
datetime - request ip - http method path response status code request time - size of response
datetime
request ip
http method
path
response status code
request time
size of response
This adds logging. Every http request will be logged out now.
In production it logs out to
log/production.log
and in dev it logs to stdout.logs look like this:
datetime
-request ip
-http method
path
response status code
request time
-size of response