Struct systemd::journal::Journal [] [src]

pub struct Journal { /* fields omitted */ }

A reader for systemd journal.

Supports read, next, previous, and seek operations.

Methods

impl Journal
[src]

Open the systemd journal for reading.

Params:

  • files: the set of journal files to read. If the calling process doesn't have permission to read the system journal, a call to Journal::open with System or All will succeed, but system journal entries won't be included. This behavior is due to systemd.
  • runtime_only: if true, include only journal entries from the current boot. If false, include all entries.
  • local_only: if true, include only journal entries originating from localhost. If false, include all entries.

Read the next record from the journal. Returns Ok(None) if there are no more records to read.

Seek to a specific position in journal. On success, returns a cursor to the current entry.

Returns the cursor of current journal entry

Returns timestamp at which current journal is recorded

Adds a match by which to filter the entries of the journal. If a match is applied, only entries with this field set will be iterated.

Inserts a disjunction (i.e. logical OR) in the match list.

Inserts a conjunction (i.e. logical AND) in the match list.

Flushes all matches, disjunction and conjunction terms. After this call all filtering is removed and all entries in the journal will be iterated again.

Trait Implementations

impl Drop for Journal
[src]

A method called when the value goes out of scope. Read more