log-0.2.2: Structured logging solution with multiple backends

Safe HaskellNone
LanguageHaskell2010

Log.Class

Synopsis

Documentation

data UTCTime :: *

This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.

class Monad m => MonadTime m where

Class of monads which carry the notion of the current time.

Methods

currentTime :: m UTCTime

Instances

MonadTime IO 
(MonadTime m, MonadTrans t, Monad (t m)) => MonadTime (t m)

Generic, overlapping instance.

class MonadTime m => MonadLog m where Source

Represents the family of monads with logging capabilities.

Methods

logMessage :: UTCTime -> LogLevel -> Text -> Value -> m () Source

localData :: [Pair] -> m a -> m a Source

localDomain :: Text -> m a -> m a Source

Instances

(MonadLog m, Monad (t m), MonadTransControl t) => MonadLog (t m)

Generic, overlapping instance.

(MonadBase IO m, MonadTime m) => MonadLog (LogT m) 

logInfo :: MonadLog m => String -> Value -> m () Source

logTrace :: MonadLog m => String -> Value -> m () Source

logInfo_ :: MonadLog m => String -> m () Source