Journald Script python reference

Journald Module API

lmi.scripts.journald.list_messages(ns, reverse=False, tail=False)

List messages from the journal.

  • reverse (boolean) – List messages from newest to oldest.
  • tail (boolean) – List only the last 50 messages
lmi.scripts.journald.log_message(ns, message)

Logs a new message in the journal.

Parameters:message (string) – A message to log.

Sets up a new indication listener and waits for events.