Safe Haskell | None |
---|---|
Language | GHC2021 |
logging functions for different loglevels
run the frontend
withLoggingWithSubscribers Source #
:: MonadUnliftIO m | |
=> [Subscriber m] | a list of subscribers |
-> (PLogChan -> m r) | a channel, a client can write to |
-> m r |
it is not a priori unsafe to escape the chan out of the context, it will just mean that all the subscribers are gone and nothing is logged anymore