kazu-yamamoto / logger

A fast logging system for Haskell
159 stars 68 forks source link

monad-logger-json #129

Closed gregwebs closed 6 years ago

gregwebs commented 7 years ago

Log in a JSON format

{"loc":"src/App.hs:62:23","source":"startup","level":"Info","msg":"app started"}
snoyberg commented 7 years ago

It would be more efficient to stick with the Builder type, append the newline in that format, and then use hPutBuilder.

gregwebs commented 7 years ago

nice. I was more worried about trying to encode the msg field efficiently: I didn't figure that out

kazu-yamamoto commented 6 years ago

The new repo of monad-logger is https://github.com/snoyberg/monad-logger I would like to close this.