graflog-6.1.1: Monadic correlated log events

Safe HaskellNone
LanguageHaskell2010

Graflog.Logger

Documentation

class Monad m => Logger m where Source #

Minimal complete definition

logJSON

Methods

logJSON :: Event -> m () Source #

Instances

Logger IO Source # 

Methods

logJSON :: Event -> IO () Source #

Logger m => Logger (ExceptT e m) Source # 

Methods

logJSON :: Event -> ExceptT e m () Source #

Logger m => Logger (StateT s m) Source # 

Methods

logJSON :: Event -> StateT s m () Source #

(Logger m, Monoid w) => Logger (WriterT w m) Source # 

Methods

logJSON :: Event -> WriterT w m () Source #

Logger m => Logger (ReaderT * r m) Source # 

Methods

logJSON :: Event -> ReaderT * r m () Source #

logJSON' :: Console m => Event -> m () Source #

class ToLog a where Source #

Minimal complete definition

toLog

Methods

toLog :: a -> Log Source #

Instances

ToLog Double Source # 

Methods

toLog :: Double -> Log Source #

ToLog Float Source # 

Methods

toLog :: Float -> Log Source #

ToLog Int Source # 

Methods

toLog :: Int -> Log Source #

ToLog Integer Source # 

Methods

toLog :: Integer -> Log Source #

ToLog Text Source # 

Methods

toLog :: Text -> Log Source #

ToLog Log Source # 

Methods

toLog :: Log -> Log Source #

ToLog a => ToLog [a] Source # 

Methods

toLog :: [a] -> Log Source #

ToLog a => ToLog (Maybe a) Source # 

Methods

toLog :: Maybe a -> Log Source #

(ToLog a, ToLog b) => ToLog (Either a b) Source # 

Methods

toLog :: Either a b -> Log Source #

ToLog a => ToLog (Map Text a) Source # 

Methods

toLog :: Map Text a -> Log Source #

data Log Source #

Instances

numToLog :: (Show a, Num a) => a -> Log Source #

pair :: ToLog a => Text -> a -> (Text, Log) Source #