Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module extends extends the di logging ecosystem with support for the df1 hierarchical structured logging format.
Particularly, it exports df1
for rendering df1-formatted logs, an
extension to the Di.Core API with vocabulary specific to df1, and
functions like fromDiLog
or fromDf1Log
to convert back and forth between
di and df1 types.
The Di.Df1.Monad module belonging to this same package exports an extension to the Di.Monad API, rather than to Di.Core.
Consider this a preview release: The API is likely to stay stable, but extensive testing, formalization and tooling is due.
Synopsis
- push :: Segment -> Di level Path msg -> Di level Path msg
- attr :: Key -> Value -> Di level Path msg -> Di level Path msg
- debug :: MonadIO m => Di Level path Message -> Message -> m ()
- info :: MonadIO m => Di Level path Message -> Message -> m ()
- notice :: MonadIO m => Di Level path Message -> Message -> m ()
- warning :: MonadIO m => Di Level path Message -> Message -> m ()
- error :: MonadIO m => Di Level path Message -> Message -> m ()
- alert :: MonadIO m => Di Level path Message -> Message -> m ()
- critical :: MonadIO m => Di Level path Message -> Message -> m ()
- emergency :: MonadIO m => Di Level path Message -> Message -> m ()
- debug' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m ()
- info' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m ()
- notice' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m ()
- warning' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m ()
- error' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m ()
- alert' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m ()
- critical' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m ()
- emergency' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m ()
- df1 :: LineRenderer Level Path Message
- fromDiLog :: Log Level Path Message -> Log
- fromDf1Log :: Log -> Log Level Path Message
Hierarchy
Metadata
Messages
Non MonadIO
variants
debug' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m () Source #
notice' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m () Source #
warning' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m () Source #
error' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m () Source #
alert' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m () Source #
critical' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m () Source #
emergency' :: MonadIO m => (forall x. STM x -> m x) -> Di Level path Message -> Message -> m () Source #
Log a message stating that the system is unusable.
emergency'
==log'
Emergency