1 `systemd.journal` module
2 ========================
4 .. automodule:: systemd.journal
5 :members: send, sendv, stream, stream_fd
11 .. autoclass:: JournalHandler
16 .. autoclass:: _Reader
24 .. automethod:: __init__
26 .. autoclass:: Monotonic
28 .. autoattribute:: systemd.journal.DEFAULT_CONVERTERS
30 Example: polling for journal events
31 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 This example shows that journal events can be waited for (using
34 e.g. `poll`). This makes it easy to integrate Reader in an external
38 >>> from systemd import journal
39 >>> j = journal.Reader()
42 >>> p.register(j, select.POLLIN)
51 .. autoattribute:: systemd.journal.LOCAL_ONLY
52 .. autoattribute:: systemd.journal.RUNTIME_ONLY
53 .. autoattribute:: systemd.journal.SYSTEM_ONLY
58 .. autoattribute:: systemd.journal.NOP
59 .. autoattribute:: systemd.journal.APPEND
60 .. autoattribute:: systemd.journal.INVALIDATE