convex-base-0.2.0.0: Base classes and types for working with cardano-api transactions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.MonadLog

Description

Simple logging

Synopsis

Documentation

class Monad m ⇒ MonadLog m where Source #

Methods

logInfo'Doc Void → m () Source #

logWarn'Doc Void → m () Source #

logDebug'Doc Void → m () Source #

Instances

Instances details
Monad m ⇒ MonadLog (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

MonadIO m ⇒ MonadLog (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

MonadLog m ⇒ MonadLog (MaybeT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

logInfo'Doc VoidMaybeT m () Source #

logWarn'Doc VoidMaybeT m () Source #

logDebug'Doc VoidMaybeT m () Source #

MonadLog m ⇒ MonadLog (MonadBlockchainCardanoNodeT e m) Source # 
Instance details

Defined in Convex.Class

MonadLog m ⇒ MonadLog (ExceptT e m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

logInfo'Doc VoidExceptT e m () Source #

logWarn'Doc VoidExceptT e m () Source #

logDebug'Doc VoidExceptT e m () Source #

MonadLog m ⇒ MonadLog (ReaderT e m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

logInfo'Doc VoidReaderT e m () Source #

logWarn'Doc VoidReaderT e m () Source #

logDebug'Doc VoidReaderT e m () Source #

MonadLog m ⇒ MonadLog (StateT s m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

logInfo'Doc VoidStateT s m () Source #

logWarn'Doc VoidStateT s m () Source #

logDebug'Doc VoidStateT s m () Source #

MonadLog m ⇒ MonadLog (StateT s m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

logInfo'Doc VoidStateT s m () Source #

logWarn'Doc VoidStateT s m () Source #

logDebug'Doc VoidStateT s m () Source #

logInfo ∷ ∀ a m. (Pretty a, MonadLog m) ⇒ a → m () Source #

logInfoS ∷ ∀ m. MonadLog m ⇒ String → m () Source #

logWarn ∷ ∀ a m. (Pretty a, MonadLog m) ⇒ a → m () Source #

logWarnS ∷ ∀ m. MonadLog m ⇒ String → m () Source #

logDebug ∷ ∀ a m. (Pretty a, MonadLog m) ⇒ a → m () Source #

logDebugS ∷ ∀ m. MonadLog m ⇒ String → m () Source #

newtype MonadLogIgnoreT m a Source #

Constructors

MonadLogIgnoreT 

Fields

Instances

Instances details
MonadTrans MonadLogIgnoreT Source # 
Instance details

Defined in Convex.MonadLog

Methods

liftMonad m ⇒ m a → MonadLogIgnoreT m a Source #

MonadError e m ⇒ MonadError e (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

MonadFail m ⇒ MonadFail (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

failStringMonadLogIgnoreT m a Source #

MonadIO m ⇒ MonadIO (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

liftIOIO a → MonadLogIgnoreT m a Source #

Applicative m ⇒ Applicative (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

Functor m ⇒ Functor (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

fmap ∷ (a → b) → MonadLogIgnoreT m a → MonadLogIgnoreT m b Source #

(<$) ∷ a → MonadLogIgnoreT m b → MonadLogIgnoreT m a Source #

Monad m ⇒ Monad (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

Monad m ⇒ MonadLog (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

MonadCatch m ⇒ MonadCatch (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

catchException e ⇒ MonadLogIgnoreT m a → (e → MonadLogIgnoreT m a) → MonadLogIgnoreT m a Source #

MonadMask m ⇒ MonadMask (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

mask ∷ ((∀ a. MonadLogIgnoreT m a → MonadLogIgnoreT m a) → MonadLogIgnoreT m b) → MonadLogIgnoreT m b Source #

uninterruptibleMask ∷ ((∀ a. MonadLogIgnoreT m a → MonadLogIgnoreT m a) → MonadLogIgnoreT m b) → MonadLogIgnoreT m b Source #

generalBracketMonadLogIgnoreT m a → (a → ExitCase b → MonadLogIgnoreT m c) → (a → MonadLogIgnoreT m b) → MonadLogIgnoreT m (b, c) Source #

MonadThrow m ⇒ MonadThrow (MonadLogIgnoreT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

throwMException e ⇒ e → MonadLogIgnoreT m a Source #

Logging with Katip

newtype MonadLogKatipT m a Source #

Constructors

MonadLogKatipT 

Instances

Instances details
MonadTrans MonadLogKatipT Source # 
Instance details

Defined in Convex.MonadLog

Methods

liftMonad m ⇒ m a → MonadLogKatipT m a Source #

MonadError e m ⇒ MonadError e (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

throwError ∷ e → MonadLogKatipT m a Source #

catchErrorMonadLogKatipT m a → (e → MonadLogKatipT m a) → MonadLogKatipT m a Source #

MonadFail m ⇒ MonadFail (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

failStringMonadLogKatipT m a Source #

MonadIO m ⇒ MonadIO (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

liftIOIO a → MonadLogKatipT m a Source #

Applicative m ⇒ Applicative (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

pure ∷ a → MonadLogKatipT m a Source #

(<*>)MonadLogKatipT m (a → b) → MonadLogKatipT m a → MonadLogKatipT m b Source #

liftA2 ∷ (a → b → c) → MonadLogKatipT m a → MonadLogKatipT m b → MonadLogKatipT m c Source #

(*>)MonadLogKatipT m a → MonadLogKatipT m b → MonadLogKatipT m b Source #

(<*)MonadLogKatipT m a → MonadLogKatipT m b → MonadLogKatipT m a Source #

Functor m ⇒ Functor (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

fmap ∷ (a → b) → MonadLogKatipT m a → MonadLogKatipT m b Source #

(<$) ∷ a → MonadLogKatipT m b → MonadLogKatipT m a Source #

Monad m ⇒ Monad (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

(>>=)MonadLogKatipT m a → (a → MonadLogKatipT m b) → MonadLogKatipT m b Source #

(>>)MonadLogKatipT m a → MonadLogKatipT m b → MonadLogKatipT m b Source #

return ∷ a → MonadLogKatipT m a Source #

MonadIO m ⇒ MonadLog (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

MonadCatch m ⇒ MonadCatch (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

catchException e ⇒ MonadLogKatipT m a → (e → MonadLogKatipT m a) → MonadLogKatipT m a Source #

MonadMask m ⇒ MonadMask (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

mask ∷ ((∀ a. MonadLogKatipT m a → MonadLogKatipT m a) → MonadLogKatipT m b) → MonadLogKatipT m b Source #

uninterruptibleMask ∷ ((∀ a. MonadLogKatipT m a → MonadLogKatipT m a) → MonadLogKatipT m b) → MonadLogKatipT m b Source #

generalBracketMonadLogKatipT m a → (a → ExitCase b → MonadLogKatipT m c) → (a → MonadLogKatipT m b) → MonadLogKatipT m (b, c) Source #

MonadThrow m ⇒ MonadThrow (MonadLogKatipT m) Source # 
Instance details

Defined in Convex.MonadLog

Methods

throwMException e ⇒ e → MonadLogKatipT m a Source #

withKatipLoggingSeverityEnvironmentNamespace → (KatipConfigIO ()) → IO () Source #

Set up a KatipConfig with a single scribe that writes to stdout at the given severity

Etc.

logUnlessMonadLog m ⇒ BoolString → m () Source #