X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fpython-systemd%2Fdocs%2Fjournal.rst;h=ea74cf85c408f499255e95a091db684e1173930b;hb=13e8ceb84e56907d73b6b07418deb37faaf0e66d;hp=9dc495ffdb685ff5b331f822598b82e2a6183366;hpb=f2e82cd5add31d704b39a91d570ab6649653fa49;p=elogind.git diff --git a/src/python-systemd/docs/journal.rst b/src/python-systemd/docs/journal.rst index 9dc495ffd..ea74cf85c 100644 --- a/src/python-systemd/docs/journal.rst +++ b/src/python-systemd/docs/journal.rst @@ -23,6 +23,9 @@ Accessing the Journal .. automethod:: __init__ +.. autofunction:: _get_catalog +.. autofunction:: get_catalog + .. autoclass:: Monotonic .. autoattribute:: systemd.journal.DEFAULT_CONVERTERS @@ -39,7 +42,7 @@ event loop: >>> j = journal.Reader() >>> j.seek_tail() >>> p = select.poll() - >>> p.register(j, select.POLLIN) + >>> p.register(j, j.get_events()) >>> p.poll() [(3, 1)] >>> j.get_next() @@ -50,7 +53,8 @@ Journal access types .. autoattribute:: systemd.journal.LOCAL_ONLY .. autoattribute:: systemd.journal.RUNTIME_ONLY -.. autoattribute:: systemd.journal.SYSTEM_ONLY +.. autoattribute:: systemd.journal.SYSTEM +.. autoattribute:: systemd.journal.CURRENT_USER Journal event types ~~~~~~~~~~~~~~~~~~~