Homogeneize date formats in log
morgan
logs in ISO date format, but we were using a custom format for
our own Logger
class serverside, resulting in mixed formats for the
date prefix of the logs, which was not easy to read.
This commit uses ISO dates everywhere as morgan
does not support a
custom format that would be compatible with the one we had in Logger
.
This solves having logs like this:
[2017-08-04 08:33:15:20] info - sources/weboob | OK: weboob exited normally with non-empty JSON content.
[2017-08-04T20:33:15.229Z] GET /api/v1/all - 200 (768.979 ms)
Now we have:
[2017-08-04T20:36:30.670Z] info - sources/weboob | OK: weboob exited normally with non-empty JSON content.
[2017-08-04T20:36:30.692Z] GET /api/v1/all - 200 (426.423 ms)