polysemy-log-0.6.0.1: Polysemy Effects for Logging
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.Log.Data.Log

Description

 
Synopsis

Documentation

data Log :: Effect where Source #

The default high-level effect for simple text messages. To be used with the severity constructors:

import qualified Polysemy.Log as Log

prog = do
  Log.debug "debugging…"
  Log.warn "warning!"

Interpreters should preprocess and relay the message to DataLog.

Constructors

Log :: HasCallStack => LogMessage -> Log m ()

Schedule a message to be logged.

log :: HasCallStack => Member Log r => Severity -> Text -> Sem r () Source #

Log a message with the given severity. Basic Sem constructor.

trace :: HasCallStack => Member Log r => Text -> Sem r () Source #

Log a message with the Trace severity.

debug :: HasCallStack => Member Log r => Text -> Sem r () Source #

Log a message with the Debug severity.

info :: HasCallStack => Member Log r => Text -> Sem r () Source #

Log a message with the Info severity.

warn :: HasCallStack => Member Log r => Text -> Sem r () Source #

Log a message with the Warn severity.

error :: HasCallStack => Member Log r => Text -> Sem r () Source #

Log a message with the Error severity.

crit :: HasCallStack => Member Log r => Text -> Sem r () Source #

Log a message with the Crit severity.