chiark / gitweb /
systemd-python: attach fields to JournalHandler, add SYSLOG_IDENTIFIER
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Apr 2013 02:07:18 +0000 (22:07 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Apr 2013 01:20:27 +0000 (21:20 -0400)
commitb5edbff0356c0b161c46992d9e298866e54c448c
tree8bb94d7668263e18e0857c9d395377ede05b3483
parent31afa0a44c2d7f93d837c840cdbd623982ac165f
systemd-python: attach fields to JournalHandler, add SYSLOG_IDENTIFIER

Arbitrary fields can be attached at the level of the handler,
and they'll be sent with all messages from this handler.

This facility is used to attach SYSLOG_IDENTIFIER to all messages,
since otherwise journald attaches SYSLOG_IDENTIFIER=python or
something similar, which is completely useless.
src/python-systemd/journal.py