<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/python-systemd.git/systemd/journal.py, branch v235</title>
<subtitle>github.com: systemd/python-systemd.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/'/>
<entry>
<title>journal: fix compatibility with python2</title>
<updated>2022-08-16T09:03:09+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2022-08-16T08:34:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=872ce304a07bb4c1b4fc06b7bfbd9220652c3793'/>
<id>872ce304a07bb4c1b4fc06b7bfbd9220652c3793</id>
<content type='text'>
This is a lazy workaround: 4c9a241949067fc8d55f3ea12170ad364bd8b18d
is amended to do nothing on python2, so we have the same issue that
was present before. This allows the code to execute, and hopefully
almost nobody is using python2 code anyway.

f868a56b935b6152d611b22f7a5538f14dafb194 is amended in the same way.
For python2 code we have the same lack of timezone-awareness as before.

This allows the tests to pass under python 2.7.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a lazy workaround: 4c9a241949067fc8d55f3ea12170ad364bd8b18d
is amended to do nothing on python2, so we have the same issue that
was present before. This allows the code to execute, and hopefully
almost nobody is using python2 code anyway.

f868a56b935b6152d611b22f7a5538f14dafb194 is amended in the same way.
For python2 code we have the same lack of timezone-awareness as before.

This allows the tests to pass under python 2.7.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #92 from chrismullins/support-realtime-cutoff</title>
<updated>2022-08-16T07:55:39+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2022-08-16T07:55:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=6320847472657fc2b4f98dd5bfeb4c826ed68a06'/>
<id>6320847472657fc2b4f98dd5bfeb4c826ed68a06</id>
<content type='text'>
Support realtime cutoff access</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Support realtime cutoff access</pre>
</div>
</content>
</entry>
<entry>
<title>Adding timezone information to datetimes from systemd-journal</title>
<updated>2022-08-13T17:34:51+00:00</updated>
<author>
<name>Samuel BF</name>
<email>36460-samuelbf@users.noreply.framagit.org</email>
</author>
<published>2022-01-08T14:32:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=f868a56b935b6152d611b22f7a5538f14dafb194'/>
<id>f868a56b935b6152d611b22f7a5538f14dafb194</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for sd_journal_get_cutoff_realtime_usec wrapper</title>
<updated>2021-01-03T01:22:22+00:00</updated>
<author>
<name>Chris Mullins</name>
<email>crmullin@fastmail.com</email>
</author>
<published>2021-01-03T01:22:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=9bb147c26b9578f1dadcedb1ed458fe983f56060'/>
<id>9bb147c26b9578f1dadcedb1ed458fe983f56060</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>journal: remove ChainMap</title>
<updated>2020-11-12T18:19:47+00:00</updated>
<author>
<name>Glandos</name>
<email>bugs-github@antipoul.fr</email>
</author>
<published>2018-07-26T09:24:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=2166b5759ca0ead2b0ba1bf28eef5220268ae0ef'/>
<id>2166b5759ca0ead2b0ba1bf28eef5220268ae0ef</id>
<content type='text'>
"after some quick testing, the execution time got halved (32-ish
seconds to 16-ish seconds) when going through all journal entries."

Closes #63.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"after some quick testing, the execution time got halved (32-ish
seconds to 16-ish seconds) when going through all journal entries."

Closes #63.
</pre>
</div>
</content>
</entry>
<entry>
<title>journal: add namespace support</title>
<updated>2020-11-12T18:10:13+00:00</updated>
<author>
<name>Alexander Olekhnovich</name>
<email>alex@aiven.io</email>
</author>
<published>2020-08-20T08:00:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=9cbc4e93b40b452296be6daf0f61a2533630a007'/>
<id>9cbc4e93b40b452296be6daf0f61a2533630a007</id>
<content type='text'>
Add log namespace support which is added since systemd v245
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add log namespace support which is added since systemd v245
</pre>
</div>
</content>
</entry>
<entry>
<title>journal: allow JournalHandler constructor to be called with args in a positional param</title>
<updated>2020-11-12T18:05:37+00:00</updated>
<author>
<name>Tamaki Nishino</name>
<email>otamachan@gmail.com</email>
</author>
<published>2017-10-20T12:50:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=5dd8afda3ec83d245a4708638a40ca267d0dfed0'/>
<id>5dd8afda3ec83d245a4708638a40ca267d0dfed0</id>
<content type='text'>
This change enables to add extra fields to JournalHandler in a
configuration file loaded by `logging.config.fileConfig`, which only allows positional
parameters:

class=systemd.journal.JournalHandler
args={'level': INFO, 'SYSLOG_IDENTIFIER': 'my-cool-app'}

[zj: originally the patch added a new positional parameter to
__init__(), but that is not backwards compatible. So I added a new
classmethod to allow the positional parameters to be passed.]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change enables to add extra fields to JournalHandler in a
configuration file loaded by `logging.config.fileConfig`, which only allows positional
parameters:

class=systemd.journal.JournalHandler
args={'level': INFO, 'SYSLOG_IDENTIFIER': 'my-cool-app'}

[zj: originally the patch added a new positional parameter to
__init__(), but that is not backwards compatible. So I added a new
classmethod to allow the positional parameters to be passed.]
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix seek_realtime to work with timezone aware date</title>
<updated>2020-11-12T07:50:25+00:00</updated>
<author>
<name>Léonard Gérard</name>
<email>34161+leolchat@users.noreply.github.com</email>
</author>
<published>2020-07-02T06:15:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=4c9a241949067fc8d55f3ea12170ad364bd8b18d'/>
<id>4c9a241949067fc8d55f3ea12170ad364bd8b18d</id>
<content type='text'>
`strftime("%s")` is not in the official python documentation but in my system (ubuntu 18.04 python 3.6.9) it is not aware of the object timezone and will return the wrong value if the timezone is specified and is not the system local one.

There are multiple ways to ensure a python `datetime.datetime` is in local timezone, the easiest (with python 3.3+) is to call `.astimezone()` If one wants to support earlier versions of python an extra dependency might be needed like `dateutil.tz.tzlocal()`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`strftime("%s")` is not in the official python documentation but in my system (ubuntu 18.04 python 3.6.9) it is not aware of the object timezone and will return the wrong value if the timezone is specified and is not the system local one.

There are multiple ways to ensure a python `datetime.datetime` is in local timezone, the easiest (with python 3.3+) is to call `.astimezone()` If one wants to support earlier versions of python an extra dependency might be needed like `dateutil.tz.tzlocal()`.</pre>
</div>
</content>
</entry>
<entry>
<title>journal: fix repr of JournalHandler to match python3.6</title>
<updated>2017-03-25T16:31:45+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-25T16:30:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=a5dc4ab856255416e8881ab7d178d46b47285163'/>
<id>a5dc4ab856255416e8881ab7d178d46b47285163</id>
<content type='text'>
We get &lt;systemd.journal.JournalHandler object at ...&gt; in older versions,
and &lt;JournalHandler (NOTSET)&gt; in since Python 3.6.
https://github.com/python/cpython/commit/c0752011472790e34d171b89f4b862cc3fd8ad08
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We get &lt;systemd.journal.JournalHandler object at ...&gt; in older versions,
and &lt;JournalHandler (NOTSET)&gt; in since Python 3.6.
https://github.com/python/cpython/commit/c0752011472790e34d171b89f4b862cc3fd8ad08
</pre>
</div>
</content>
</entry>
<entry>
<title>journal: do not convert extra args to string in JournalHandler</title>
<updated>2017-03-19T19:07:59+00:00</updated>
<author>
<name>Zbigniew Jędrzejewski-Szmek</name>
<email>zbyszek@in.waw.pl</email>
</author>
<published>2017-03-19T19:03:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/python-systemd.git/commit/?id=2169cdea8d2850a8e4109b2d1f3980d44a361818'/>
<id>2169cdea8d2850a8e4109b2d1f3980d44a361818</id>
<content type='text'>
send() already does conversions in a type-specific way, and doing it
in journal handler would defeat those conversions. In particular, UUIDs
would be converted to early and have dashes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
send() already does conversions in a type-specific way, and doing it
in journal handler would defeat those conversions. In particular, UUIDs
would be converted to early and have dashes.
</pre>
</div>
</content>
</entry>
</feed>
