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 .. autofunction:: _get_catalog
27 .. autofunction:: get_catalog
29 .. autoclass:: Monotonic
31 .. autoattribute:: systemd.journal.DEFAULT_CONVERTERS
33 Example: polling for journal events
34 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36 This example shows that journal events can be waited for (using
37 e.g. `poll`). This makes it easy to integrate Reader in an external
41 >>> from systemd import journal
42 >>> j = journal.Reader()
45 >>> p.register(j, j.get_events())
54 .. autoattribute:: systemd.journal.LOCAL_ONLY
55 .. autoattribute:: systemd.journal.RUNTIME_ONLY
56 .. autoattribute:: systemd.journal.SYSTEM
57 .. autoattribute:: systemd.journal.CURRENT_USER
62 .. autoattribute:: systemd.journal.NOP
63 .. autoattribute:: systemd.journal.APPEND
64 .. autoattribute:: systemd.journal.INVALIDATE