maddox / itunes-api

🎵 A simple server providing a RESTful service for controlling iTunes
MIT License
200 stars 45 forks source link

Logging #2

Closed maddox closed 9 years ago

maddox commented 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.

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