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

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

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