journalctl-stream-0.1.0.0: Stream logs using journalctl.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Systemd.Journalctl.Stream

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

Journal entry

data Entry Source #

A journal entry.

Constructors

Entry 

Fields

Instances

Instances details
FromJSON Entry Source # 
Instance details

Defined in Systemd.Journalctl.Stream

Show Entry Source # 
Instance details

Defined in Systemd.Journalctl.Stream

Methods

showsPrec :: Int -> Entry -> ShowS #

show :: Entry -> String #

showList :: [Entry] -> ShowS #

data Cursor Source #

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.

Instances

Instances details
FromJSON Cursor Source # 
Instance details

Defined in Systemd.Journalctl.Stream

Show Cursor Source # 
Instance details

Defined in Systemd.Journalctl.Stream

Eq Cursor Source # 
Instance details

Defined in Systemd.Journalctl.Stream

Methods

(==) :: Cursor -> Cursor -> Bool #

(/=) :: Cursor -> Cursor -> Bool #

Streaming

entryStream Source #

Arguments

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

data Exception Source #

Exception raised while streaming entries from journalctl.