apiary-logger-1.5.1: fast-logger support for apiary web framework.

Safe HaskellNone
LanguageHaskell2010

Web.Apiary.Logger

Contents

Synopsis

Documentation

data Logger Source #

logger extension data type.

configuration

data LogConfig Source #

Constructors

LogConfig 

Instances

initialize

action

logging :: (Has Logger es, MonadExts es m, MonadIO m) => LogStr -> m () Source #

push log.

wrapper

data LogWrapper exts m a Source #

wrapper to use as MonadLogger using Logger Extenson.

Instances

Monad m => MonadExts exts (LogWrapper exts m) Source # 

Methods

getExts :: LogWrapper exts m (Extensions exts) #

MonadBaseControl b m => MonadBaseControl b (LogWrapper exts m) Source # 

Associated Types

type StM (LogWrapper exts m :: * -> *) a :: * #

Methods

liftBaseWith :: (RunInBase (LogWrapper exts m) b -> b a) -> LogWrapper exts m a #

restoreM :: StM (LogWrapper exts m) a -> LogWrapper exts m a #

MonadBase b m => MonadBase b (LogWrapper exts m) Source # 

Methods

liftBase :: b α -> LogWrapper exts m α #

MonadTrans (LogWrapper exts) Source # 

Methods

lift :: Monad m => m a -> LogWrapper exts m a #

MonadTransControl (LogWrapper exts) Source # 

Associated Types

type StT (LogWrapper exts :: (* -> *) -> * -> *) a :: * #

Methods

liftWith :: Monad m => (Run (LogWrapper exts) -> m a) -> LogWrapper exts m a #

restoreT :: Monad m => m (StT (LogWrapper exts) a) -> LogWrapper exts m a #

Monad m => Monad (LogWrapper exts m) Source # 

Methods

(>>=) :: LogWrapper exts m a -> (a -> LogWrapper exts m b) -> LogWrapper exts m b #

(>>) :: LogWrapper exts m a -> LogWrapper exts m b -> LogWrapper exts m b #

return :: a -> LogWrapper exts m a #

fail :: String -> LogWrapper exts m a #

Functor m => Functor (LogWrapper exts m) Source # 

Methods

fmap :: (a -> b) -> LogWrapper exts m a -> LogWrapper exts m b #

(<$) :: a -> LogWrapper exts m b -> LogWrapper exts m a #

Applicative m => Applicative (LogWrapper exts m) Source # 

Methods

pure :: a -> LogWrapper exts m a #

(<*>) :: LogWrapper exts m (a -> b) -> LogWrapper exts m a -> LogWrapper exts m b #

(*>) :: LogWrapper exts m a -> LogWrapper exts m b -> LogWrapper exts m b #

(<*) :: LogWrapper exts m a -> LogWrapper exts m b -> LogWrapper exts m a #

MonadIO m => MonadIO (LogWrapper exts m) Source # 

Methods

liftIO :: IO a -> LogWrapper exts m a #

type StT (LogWrapper exts) a Source # 
type StT (LogWrapper exts) a = StT (ReaderT * (Extensions exts)) a
type StM (LogWrapper exts m) a Source # 
type StM (LogWrapper exts m) a = ComposeSt (LogWrapper exts) m a

logWrapper :: Monad m => m a -> LogWrapper exts m a Source #

runLogWrapper :: Extensions exts -> LogWrapper exts m a -> m a Source #

Orphan instances

(Has Logger es, MonadExts es m, MonadIO m, Monad m) => MonadLogger m Source # 

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> m () #