logging-facade-0.0.0: Simple logging abstraction that allows multiple backends

Safe HaskellNone
LanguageHaskell2010

System.Logging.Facade.TH

Contents

Description

This module is intended to be imported qualified:

import qualified System.Logging.Facade.TH as Log

Synopsis

Producing log messages

log :: ExpQ Source

A Template Haskell version of log that adds a source location to the produced log record.

trace :: ExpQ Source

A Template Haskell version of trace that adds a source location to the produced log record.

debug :: ExpQ Source

A Template Haskell version of debug that adds a source location to the produced log record.

info :: ExpQ Source

A Template Haskell version of info that adds a source location to the produced log record.

warn :: ExpQ Source

A Template Haskell version of warn that adds a source location to the produced log record.

error :: ExpQ Source

A Template Haskell version of error that adds a source location to the produced log record.

Types

class Monad m => Logging m Source

A type class for monads with logging support

Minimal complete definition

consumeLogRecord

Instances

Logging IO Source

Log messages that are produced in the IO monad are consumed by the global LogSink.

Logging m => Logging (MaybeT m) Source 
Logging m => Logging (ListT m) Source 
Logging m => Logging (IdentityT m) Source 
(Monoid w, Logging m) => Logging (WriterT w m) Source 
(Monoid w, Logging m) => Logging (WriterT w m) Source 
(Error e, Logging m) => Logging (ErrorT e m) Source 
Logging m => Logging (ExceptT e m) Source 
Logging m => Logging (StateT s m) Source 
Logging m => Logging (StateT s m) Source 
Logging m => Logging (ReaderT r m) Source 
Logging m => Logging (ContT r m) Source 
(Monoid w, Logging m) => Logging (RWST r w s m) Source 
(Monoid w, Logging m) => Logging (RWST r w s m) Source