Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Streaming interface to journalctl. Use entryStream
to stream
journalctl entries as they are created.
Designed with qualified import in mind.
For example, if you import it as Journal
, then Entry
becomes
Journal.Entry
, and Exception
becomes Journal.Exception
.
Synopsis
- data Entry = Entry {}
- data Cursor
- entryStream :: (MonadResource m, MonadThrow m) => Maybe String -> Int -> ConduitT i Entry m ()
- data Exception
Journal entry
A journal entry.
Entry | |
|
A cursor is an opaque text string that uniquely describes the position of an entry in the journal and is portable across machines, platforms and journal files.
Streaming
:: (MonadResource m, MonadThrow m) | |
=> Maybe String | Filter by unit name. |
-> Int | Number of previous messages to stream. |
-> ConduitT i Entry m () |
Stream of journal entries.
Exceptions
Exception raised while streaming entries from journalctl.
Instances
Exception Exception Source # | |
Defined in Systemd.Journalctl.Stream toException :: Exception -> SomeException # fromException :: SomeException -> Maybe Exception # displayException :: Exception -> String # | |
Show Exception Source # | |