Closed icyleaf closed 3 years ago
Fix issue duplicate timestamp then add configuring location of timezone from ENV["TZ"]
ENV["TZ"]
Before:
2021-02-10T04:27:03.359684Z INFO - halite: > | request | 2021-02-10T12:27:03+08:00 GET | https://httpbin.org/get 2021-02-10T04:27:04.860510Z INFO - halite: < | response | 2021-02-10T12:27:04+08:00 200 | https://httpbin.org/get | 1.5s | application/json
After:
2021-02-10T12:21:12+08:00 halite: > | request | GET | https://httpbin.org/get 2021-02-10T12:21:13+08:00 halite: < | response | 200 | https://httpbin.org/get | 1.36s | application/json
Note: It invalid by calling Log.setup or Log.setup_from_env outside of Halite by setted ENV["TZ"]
Log.setup
Log.setup_from_env
Relates #101
Fix issue duplicate timestamp then add configuring location of timezone from
ENV["TZ"]
Before:
After:
Note: It invalid by calling
Log.setup
orLog.setup_from_env
outside of Halite by settedENV["TZ"]
Relates #101