Copyright | (C) 2015 Flowbox |
---|---|
License | Apache-2.0 |
Maintainer | Wojciech Daniło <wojciech.danilo@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
newtype ThreadedLogger' d r m a Source
ThreadedLogger' | |
|
(MonadIO m, MonadRecord d n) => MonadRecord d (ThreadedLogger' n a m) | |
(MonadIO m, MonadLoggerHandler h d, (~) * (LogFormat m) (LogFormat d)) => MonadLoggerHandler h (ThreadedLogger' d a m) | |
MonadTrans (ThreadedLogger' d r) | |
Monad m => Monad (ThreadedLogger' d r m) | |
Functor m => Functor (ThreadedLogger' d r m) | |
Applicative m => Applicative (ThreadedLogger' d r m) | |
MonadIO m => MonadIO (ThreadedLogger' d r m) | |
(MonadIO m, MonadPriorityLogger d) => MonadPriorityLogger (ThreadedLogger' d a m) | |
Monad m => MonadThreadLogger (ThreadedLogger' d r m) d r | |
type LogFormat (ThreadedLogger' d r m) = LogFormat m |
type ThreadedLogger d m a = ThreadedLogger' d a m a Source
class MonadThreadLogger m n a | m -> n a where Source
getLogChan :: m (InChan (ChMsg n a)) Source
Monad m => MonadThreadLogger (ThreadedLogger' d r m) d r |
runRawThreadedLogger :: InChan (ChMsg d r) -> ThreadedLogger' d r m a -> m a Source
runRawBaseThreadedLogger :: InChan (ChMsg d r) -> ThreadedLogger' d r (BaseLoggerT l m) a -> m a Source
runThreadedLogger :: (MonadIO m, Applicative m) => ThreadedLogger m (BaseLoggerT l IO) a -> m a Source
liftIOThread :: (MonadIO m, MonadThreadLogger m n a) => (IO () -> IO fa) -> ThreadedLogger' n a (BaseLoggerT l IO) b -> m b Source
fork :: (MonadIO m, MonadThreadLogger m n a) => ThreadedLogger' n a (BaseLoggerT l IO) b -> m b Source
withTarget :: (MonadThreadLogger m n a, MonadIO m) => n () -> m () Source