logging-facade-0.3.1: Simple logging abstraction that allows multiple back-ends

Safe Haskell | None
Language | Haskell2010

System.Logging.Facade.Class

Synopsis

- class Monad m => Logging (m :: Type -> Type) where
  - consumeLogRecord :: LogRecord -> m ()

# Documentation

class Monad m => Logging (m :: Type -> Type) where Source #

A type class for monads with logging support

Methods

consumeLogRecord :: LogRecord -> m () Source #

#### Instances

Instances details

Logging IO Source # | Log messages that are produced in the `IO` monad are consumed by the global `LogSink`.
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> IO () Source #
Logging m => Logging (MaybeT m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> MaybeT m () Source #
Logging m => Logging (ExceptT e m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> ExceptT e m () Source #
Logging m => Logging (IdentityT m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> IdentityT m () Source #
Logging m => Logging (ReaderT r m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> ReaderT r m () Source #
Logging m => Logging (StateT s m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> StateT s m () Source #
Logging m => Logging (StateT s m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> StateT s m () Source #
(Monoid w, Logging m) => Logging (WriterT w m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> WriterT w m () Source #
(Monoid w, Logging m) => Logging (WriterT w m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> WriterT w m () Source #
Logging m => Logging (ContT r m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> ContT r m () Source #
(Monoid w, Logging m) => Logging (RWST r w s m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> RWST r w s m () Source #
(Monoid w, Logging m) => Logging (RWST r w s m) Source # |
Instance details Defined in System.Logging.Facade.Class Methods consumeLogRecord :: LogRecord -> RWST r w s m () Source #