packages feed

graflog 0.1.1 → 0.1.2

raw patch · 4 files changed

+17/−2 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Graflog.Console: instance Graflog.Console.Console GHC.Types.IO
+ Graflog.Logger: instance Graflog.Logger.Logger GHC.Types.IO

Files

README.md view
@@ -1,3 +1,12 @@ # Graflog -Monadic correlated log events!+In a distributed system, logging is hard. In order for distributed logging to be+useful, it needs to contain metadata about what caused it. Ideally, a given logged+event should tell us:+- what user input caused it+- what API call caused it+- whether it is an error or not+- its severity+- a correlative id that allows us to find other log events related to it++Graflog is primarily focused on the last piece. 
graflog.cabal view
@@ -1,5 +1,5 @@ name:                graflog-version:             0.1.1+version:             0.1.2 synopsis:            Monadic correlated log events description:         Please see README.md homepage:            https://github.com/m-arnold/graflog#readme
src/Graflog/Console.hs view
@@ -18,3 +18,6 @@ -- this function forces stdout into line buffering mode; useful for CloudFormation logs enableStdoutLineBuffering :: MonadIO m => m () enableStdoutLineBuffering = liftIO $ hSetBuffering stdout LineBuffering++instance Console IO where+  writeStdout = writeStdout'
src/Graflog/Logger.hs view
@@ -51,3 +51,6 @@ jsonEncode = byteStringToText . toStrict . encode   where byteStringToText :: ByteString -> Text         byteStringToText bs = fromJust $ decodeConvertText (UTF8 (bs :: ByteString))++instance Logger IO where+  logEvent = logEvent'