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

Safe HaskellNone
LanguageHaskell2010

System.Logging.Facade

Contents

Description

This module is intended to be imported qualified:

import qualified System.Logging.Facade as Log

Synopsis

Producing log messages

log :: Logging m => LogLevel -> String -> m () Source

Produce a log message with specified log level.

trace :: Logging m => String -> m () Source

Produce a log message with log level TRACE.

debug :: Logging m => String -> m () Source

Produce a log message with log level DEBUG.

info :: Logging m => String -> m () Source

Produce a log message with log level INFO.

warn :: Logging m => String -> m () Source

Produce a log message with log level WARN.

error :: Logging m => String -> m () Source

Produce a log message with log level ERROR.

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