Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Simple logging
Synopsis
- class Monad m ⇒ MonadLog m where
- logInfo ∷ ∀ a m. (Pretty a, MonadLog m) ⇒ a → m ()
- logInfoS ∷ ∀ m. MonadLog m ⇒ String → m ()
- logWarn ∷ ∀ a m. (Pretty a, MonadLog m) ⇒ a → m ()
- logWarnS ∷ ∀ m. MonadLog m ⇒ String → m ()
- logDebug ∷ ∀ a m. (Pretty a, MonadLog m) ⇒ a → m ()
- logDebugS ∷ ∀ m. MonadLog m ⇒ String → m ()
- newtype MonadLogIgnoreT m a = MonadLogIgnoreT {
- runMonadLogIgnoreT ∷ m a
- newtype MonadLogKatipT m a = MonadLogKatipT {}
- runMonadLogKatip ∷ KatipConfig → MonadLogKatipT m a → m a
- type KatipConfig = (LogEnv, LogContexts, Namespace)
- withKatipLogging ∷ Severity → Environment → Namespace → (KatipConfig → IO ()) → IO ()
- logUnless ∷ MonadLog m ⇒ Bool → String → m ()
Documentation
class Monad m ⇒ MonadLog m where Source #
Instances
Monad m ⇒ MonadLog (MonadLogIgnoreT m) Source # | |
Defined in Convex.MonadLog | |
MonadIO m ⇒ MonadLog (MonadLogKatipT m) Source # | |
Defined in Convex.MonadLog | |
MonadLog m ⇒ MonadLog (MaybeT m) Source # | |
MonadLog m ⇒ MonadLog (MonadBlockchainCardanoNodeT e m) Source # | |
Defined in Convex.Class | |
MonadLog m ⇒ MonadLog (ExceptT e m) Source # | |
MonadLog m ⇒ MonadLog (ReaderT e m) Source # | |
MonadLog m ⇒ MonadLog (StateT s m) Source # | |
MonadLog m ⇒ MonadLog (StateT s m) Source # | |
newtype MonadLogIgnoreT m a Source #
Instances
Logging with Katip
newtype MonadLogKatipT m a Source #
Instances
runMonadLogKatip ∷ KatipConfig → MonadLogKatipT m a → m a Source #
type KatipConfig = (LogEnv, LogContexts, Namespace) Source #
withKatipLogging ∷ Severity → Environment → Namespace → (KatipConfig → IO ()) → IO () Source #
Set up a KatipConfig
with a single scribe that writes to stdout
at the given severity