unclogging-0.1.0.2: a library which implements easy, concurrent and pretty logging
Safe HaskellNone
LanguageGHC2021

Unclog.IO.Text

Description

The IO + Text frontend. Using MonadUnliftIO to abstract over things in IO

Synopsis

logging functions for different loglevels

run the frontend

withLoggingWithSubscribers Source #

Arguments

:: 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

helpers