[Haskell-cafe] Logging

Hilco Wijbenga hilco.wijbenga at gmail.com
Sun Nov 21 18:13:53 UTC 2021


Hi all,

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.

I tried setting the TZ environment variable explicitly (before
invoking my main) and by setting it in code
(System.Environment.setEnv) but it doesn't make any difference. I did
not find anything in either API about this so I'm out of ideas.

If this is simply impossible, does anyone have a recommendation for
another logging package?

Cheers,
Hilco


More information about the Haskell-Cafe mailing list