You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, the line "This is simple log 2" are not logged after the first line.
This seems to be true for the example which is using LogStdout, and also if I change it to use LogFileNoRotate.
Note: I've had to add a call to threadDelay an the end of the example so the program doesn't exit right away. I've compiled the program with ghc --make -threaded.
When replacing runLogTSafe with runLogT', I can see the missing logs.
In case it matters, I've used GHC 9.2.8 and fast-logger 3.1.2.
The text was updated successfully, but these errors were encountered:
In the "Logging with ThreadId" README example, the call to
runLogTSafe
at https://github.com/winterland1989/monad-log/blob/master/README.md?plain=1#L92 seems to prevent further usage of the logger.Specifically, the line "This is simple log 2" are not logged after the first line.
This seems to be true for the example which is using
LogStdout
, and also if I change it to useLogFileNoRotate
.Note: I've had to add a call to
threadDelay
an the end of the example so the program doesn't exit right away. I've compiled the program withghc --make -threaded
.When replacing
runLogTSafe
withrunLogT'
, I can see the missing logs.In case it matters, I've used GHC 9.2.8 and fast-logger 3.1.2.
The text was updated successfully, but these errors were encountered: