log-effectful-1.0.0.0: Adaptation of the log library for the effectful ecosystem.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Effectful.Log

Description

Logging via MonadLog.

Synopsis

Effect

data Log :: Effect Source #

Provide the ability to log messages via MonadLog.

Instances

Instances details
type DispatchOf Log Source # 
Instance details

Defined in Effectful.Log

newtype StaticRep Log Source # 
Instance details

Defined in Effectful.Log

Handlers

runLog Source #

Arguments

:: IOE :> es 
=> Text

Application component name to use.

-> Logger

The logging back-end to use.

-> LogLevel

The maximum log level allowed to be logged.

-> Eff (Log ': es) a

The computation to run.

-> Eff es a 

Run the Log effect.

Note: this is the effectful version of runLogT.

Re-exports

module Log

Orphan instances

Log :> es => MonadLog (Eff es) Source #

Orphan, canonical instance.

Instance details

Methods

logMessage :: LogLevel -> Text -> Value -> Eff es () #

localData :: [Pair] -> Eff es a -> Eff es a #

localDomain :: Text -> Eff es a -> Eff es a #

localMaxLogLevel :: LogLevel -> Eff es a -> Eff es a #

getLoggerEnv :: Eff es LoggerEnv #