hslogger
hslogger copied to clipboard
Logging framework for Haskell
Would it be possible to add hslogger to Stackage? We'd like to add ghcide to Stackage, which relies on hslogger, and having it already there would make that much simpler.
With `-Wall` I get: ``` src/System/Log/Handler/Syslog.hs:266:19: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns not matched: network-3.1.2.5:Network.Socket.Types.SocketType (Foreign.C.Types.CInt (GHC.Int.I32# _)) | 266 | sent
I find that 97% of all my log messages are priority DEBUG. It could be handy to have a few priorities lower than that.
Error occurs when attempting to log anything in SDL application > : hPutChar: invalid argument (Bad file descriptor) I made test application in [EPashkin/hslogger_SDL_test bad branch](https://github.com/EPashkin/hslogger_SDL_test/tree/not_working) Problem can be fixed...
In order notably to return logging information if a client requests it
I think this change really helps clarify the behavior of the logging system.
`Network.Socket.sendBufTo does not exist (no such file or directory)`
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,...
The word `handlers` was in italics, which wasn't intended.
In trying to use hslogger and the GHC API together, I found that the global `logTree` structure was being created repeatedly and independenly (presumably due to fun interactions between unsafePerformIO...