Make log file reading easier
The timestamp within the log is now Unix Timestamp. This makes it really hard to find the right logs when there is a issue.
Please implement a option to change to a human readable time. I suggest the UTC timestamp. Dateformat can be fix of should better be looking for the server values.
Now:
{"level":"debug","ts":1540975612.3137412,"caller":"web/handlers.go:50","msg":"POST - /api/v4/users/status/ids"}
Better:
{"level":"debug","ts":10/31/2018 8:46am,"caller":"web/handlers.go:50","msg":"POST - /api/v4/users/status/ids"}
Optimal (i am in europe):
{"level":"debug","ts":31.10.2018 8:46,"caller":"web/handlers.go:50","msg":"POST - /api/v4/users/status/ids"}
Best regards
-
Anonymous commented
ISO-8601 Timestamp (though I am in Europe, too):
{"level":"debug","ts":2018-10-31T08:46,"caller":"web/handlers.go:50","msg":"POST - /api/v4/users/status/ids"}