Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bulk stdout logging back-end.
Synopsis
- withBulkStdOutLogger :: MonadUnliftIO m => (Logger -> m r) -> m r
- withBulkJsonStdOutLogger :: MonadUnliftIO m => (Logger -> m r) -> m r
Documentation
withBulkStdOutLogger :: MonadUnliftIO m => (Logger -> m r) -> m r Source #
Create an asynchronouis logger thread that prints messages to standard
output once per second for the duration of the given action. Flushes stdout
on each bulk write.
withBulkJsonStdOutLogger :: MonadUnliftIO m => (Logger -> m r) -> m r Source #
Create a bulk logger that prints messages in the JSON format to standard
output once per second for the duration of the given action. Flushes stdout
on each bulk write.