Skip to content

Commit 5f531b9

Browse files
committed
Add Python 3 instructions.
1 parent 7f96f34 commit 5f531b9

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
journald-python
1+
python-systemd
22
===============
33

4-
Python module for native access to the journald facilities in recent
5-
versions of systemd. In particular, this capability includes passing
6-
key/value pairs as fields that journald can use for filtering.
4+
Python module for native access to the systemd facilities in recent versions
5+
of Fedora and other distributions. In particular, this capability includes
6+
passing key/value pairs as fields that the journal can display and use for
7+
filtering. There are also utilities to forward journal entries to aggregators
8+
like Graylog2 via GELF.
79

810
Installation
911
============
1012

11-
On Fedora 17+:
13+
On Fedora 17+ with Python 2:
1214

1315
sudo yum install git python-pip gcc python-devel systemd-devel
1416
pip-python install git+http://github.com/systemd/python-systemd.git#egg=systemd
1517

18+
On Fedora 17+ with Python 3:
19+
20+
sudo yum install git python3-pip gcc python3-devel systemd-devel
21+
pip-python3 install git+http://github.com/systemd/python-systemd.git#egg=systemd
22+
1623
Usage
1724
=====
1825

@@ -43,8 +50,6 @@ Notes:
4350
printf-style substitution is not supported. Perform any
4451
substitution using Python's % operator or .format() capabilities
4552
first.
46-
* The base message is usually sent in the form MESSAGE=hello. The
47-
MESSAGE field is, however, not required.
4853
* A ValueError is thrown is thrown if sd_journald_sendv() results in
4954
an error. This might happen if there are no arguments or one of them
5055
is invalid.

0 commit comments

Comments
 (0)