winterland1989 / monad-log

A fast simple logging monad.
MIT License
10 stars 10 forks source link

logging miliseconds #1

Open chiller opened 7 years ago

chiller commented 7 years ago

What would be the best way to also log miliseconds? From what we can tell the timestamp is cached on a per-second level.

winterland1989 commented 7 years ago

Hey Galaczi!

If you need milliseconds precision, i guess you shouldn't need cache at all since it involve thread overhead, just supply your time formatting function to newTimedFastLogger http://hackage.haskell.org/package/fast-logger-2.4.5/docs/System-Log-FastLogger.html#v:newTimedFastLogger .

Cheers Winter~

On Tue, Nov 1, 2016 at 6:45 PM, Galaczi Endre Elek <notifications@github.com

wrote:

What would be the best way to also log miliseconds? From what we can tell the timestamp is cached on a per-second level.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/winterland1989/monad-log/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPGfm2RRzG1GSmixrSGlgXSksFaOBmnks5q5xhmgaJpZM4Kl-BG .