di-df1-1.0: Write logs in the df1 format using the di logging framework

Safe HaskellNone
LanguageHaskell2010

Di.Df1.Monad

Contents

Description

This module exports an API compatible with Di.Monad.

Synopsis

Hierarchy

push Source #

Arguments

:: MonadDi level Path msg m 
=> Segment 
-> m a 
-> m a 

Push a new Segment to the MonadDi.

Metadata

attr Source #

Arguments

:: MonadDi level Path msg m 
=> Key 
-> Value 
-> m a 
-> m a 

Push a new attribute Key and Value to the MonadDi.

Messages

debug Source #

Arguments

:: MonadDi Level path Message m 
=> Message 
-> m () 

Log a message intended to be useful only when deliberately debugging a program.

debug == log Debug

info Source #

Arguments

:: MonadDi Level path Message m 
=> Message 
-> m () 

Log an informational message.

info == log Info

notice Source #

Arguments

:: MonadDi Level path Message m 
=> Message 
-> m () 

Log a condition that is not an error, but should possibly be handled specially.

notice == log Notice

warning Source #

Arguments

:: MonadDi Level path Message m 
=> Message 
-> m () 

Log a warning condition, such as an exception being gracefully handled or some missing configuration setting being assigned a default value.

warning == log Warning

error Source #

Arguments

:: MonadDi Level path Message m 
=> Message 
-> m () 

Log an error condition, such as an unhandled exception.

error == log Error

alert Source #

Arguments

:: MonadDi Level path Message m 
=> Message 
-> m () 

Log a condition that should be corrected immediately, such as a corrupted database.

alert == log Alert

critical Source #

Arguments

:: MonadDi Level path Message m 
=> Message 
-> m () 

Log a critical condition that could result in system failure, such as a disk running out of space.

critical == log Critical @

emergency Source #

Arguments

:: MonadDi Level path Message m 
=> Message 
-> m () 

Log a message stating that the system is unusable.

emergency == log Emergency