| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Systemd.Journalctl.Stream
Contents
Description
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
- data StreamStart
- entryStream :: (MonadResource m, MonadThrow m) => StreamStart -> ConduitT i Entry m ()
- data Exception
Journal entry
A journal entry.
Constructors
| Entry | |
Fields
| |
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.
The Ord instance does not order by time. Given two entries
e1 and e2, e1 having an earlier timestamp than e2 doesn't
mean that entryCursor e1 < entryCursor e2.
Streaming
data StreamStart Source #
Where to start a stream.
Arguments
| :: (MonadResource m, MonadThrow m) | |
| => StreamStart | Where to start streaming entries. |
| -> ConduitT i Entry m () | Stream of journal entries. |
Stream all journal entries starting from the given point.
Exceptions
Exception raised while streaming entries from journalctl.
Instances
| Exception Exception Source # | |
Defined in Systemd.Journalctl.Stream Methods toException :: Exception -> SomeException # fromException :: SomeException -> Maybe Exception # displayException :: Exception -> String # | |
| Show Exception Source # | |