chiark / gitweb /
python: add journal backend for the logging framework
authorMarti Raudsepp <marti@juffo.org>
Tue, 9 Oct 2012 15:12:02 +0000 (18:12 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 13 Nov 2012 10:13:52 +0000 (11:13 +0100)
commit73c0495f6830ca99c0c6eb15e83c3c7d44096d19
treee14a8e9a09918c67e820a20166a119eb25cde458
parent568c7e02372ff7b8eb41172ad7c3a426723512f8
python: add journal backend for the logging framework

Supports Python versions 2.6 through 3.3 (tested on 2.7 and 3.2).
See JournalHandler docstring for usage details.

[zj: - use send() instead of using sendv() directly
     - do exception handling like in the logging module
     - bumped min version to python2.6, since the module
       does not work with python2.5 anyway ]
src/python-systemd/journal.py