haskell-hvr / hslogger

Logging framework for Haskell
https://hackage.haskell.org/package/hslogger
BSD 3-Clause "New" or "Revised" License
64 stars 36 forks source link

use bytestring for multithreaded stderr output #48

Open pasqu4le opened 5 years ago

pasqu4le commented 5 years ago

Logging on Syslog in multi-thread works fine, but if the PERROR option is active the output on stderr may be scrambled.

This is because hPutStrLn does not output lines atomically, I made a fork to use the bytestring homonym that instead does.

It should not add any delay and works as expected