arriven / db1000n

MIT License
1.17k stars 201 forks source link

Switch console log time format to RFC3339 #538

Closed roman-kruglov closed 2 years ago

roman-kruglov commented 2 years ago

instead of default epoch floating time

Description

This format should be more familiar for users. Why not ISO8601 - to my taste RFC3339 is a tad more readable. Although both formats are almost interchangeable.

Type of change

It changes the existing console log format, some users might rely on epoch time.

How Has This Been Tested?

Ran in my terminal, saw the output.

Test Configuration

Logs

After the change:

2022-05-08T15:56:23+03:00       info    job/http.go:70  single http request     {"target": "https://sample"}
2022-05-08T15:56:23+03:00       info    job/http.go:70  single http request     {"target": "https://sample"}