[Haskell-cafe] Logging

Tom Ellis tom-lists-haskell-cafe-2017 at jaguarpaw.co.uk
Sun Nov 21 18:18:16 UTC 2021


On Sun, Nov 21, 2021 at 10:13:53AM -0800, Hilco Wijbenga wrote:
> I just started using "logging"
> (https://hackage.haskell.org/package/logging) which is based on
> "fast-logger" (https://hackage.haskell.org/package/fast-logger). It
> all works fine except that the timestamp in the log message is output
> as UTC. I would like it to use my local (i.e. system) TZ.

It sounds really unwise to log timestamps in anything in other than
UTC.  If you want to see the logged times in your local timezone then
why not apply that conversion when you read the log?


More information about the Haskell-Cafe mailing list