Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-04 Thread Ludovic Gasc
2015-05-04 3:16 GMT+02:00 Lennart Poettering : > On Sat, 02.05.15 15:12, Ludovic Gasc ([email protected]) wrote: > > >2. We use heavily AsyncIO module to have async pattern in Python, > >especially for I/O: https://docs.python.org/3/library/asyncio.html > >In the source code of python-s

Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-03 Thread Lennart Poettering
On Sat, 02.05.15 15:12, Ludovic Gasc ([email protected]) wrote: >2. We use heavily AsyncIO module to have async pattern in Python, >especially for I/O: https://docs.python.org/3/library/asyncio.html >In the source code of python-systemd, I've seen that you use a C glue to >interact

Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-02 Thread Ludovic Gasc
2015-05-02 17:22 GMT+02:00 Jörg Thalheim : > On Sat, 2 May 2015 16:31:44 +0200 > Ludovic Gasc wrote: > > > 2015-05-02 16:18 GMT+02:00 Zbigniew Jędrzejewski-Szmek > > : > > > > > On Sat, May 02, 2015 at 03:34:52PM +0200, Ludovic Gasc wrote: > > > > Ok, my bad, I didn't see JournalHandler class to

Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-02 Thread Zbigniew Jędrzejewski-Szmek
On Sat, May 02, 2015 at 05:22:49PM +0200, Jörg Thalheim wrote: > On Sat, 2 May 2015 16:31:44 +0200 > Ludovic Gasc wrote: > > > 2015-05-02 16:18 GMT+02:00 Zbigniew Jędrzejewski-Szmek > > : > > > > > On Sat, May 02, 2015 at 03:34:52PM +0200, Ludovic Gasc wrote: > > > > Ok, my bad, I didn't see Jou

Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-02 Thread Jörg Thalheim
On Sat, 2 May 2015 16:31:44 +0200 Ludovic Gasc wrote: > 2015-05-02 16:18 GMT+02:00 Zbigniew Jędrzejewski-Szmek > : > > > On Sat, May 02, 2015 at 03:34:52PM +0200, Ludovic Gasc wrote: > > > Ok, my bad, I didn't see JournalHandler class to use with Python > > > logging: > > > > > http://www.freede

Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-02 Thread Zbigniew Jędrzejewski-Szmek
On Sat, May 02, 2015 at 04:31:44PM +0200, Ludovic Gasc wrote: > 2015-05-02 16:18 GMT+02:00 Zbigniew Jędrzejewski-Szmek : > > > On Sat, May 02, 2015 at 03:34:52PM +0200, Ludovic Gasc wrote: > > > Ok, my bad, I didn't see JournalHandler class to use with Python logging: > > > > > http://www.freedesk

Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-02 Thread Ludovic Gasc
2015-05-02 16:18 GMT+02:00 Zbigniew Jędrzejewski-Szmek : > On Sat, May 02, 2015 at 03:34:52PM +0200, Ludovic Gasc wrote: > > Ok, my bad, I didn't see JournalHandler class to use with Python logging: > > > http://www.freedesktop.org/software/systemd/python-systemd/journal.html#journalhandler-class

Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-02 Thread Zbigniew Jędrzejewski-Szmek
On Sat, May 02, 2015 at 03:34:52PM +0200, Ludovic Gasc wrote: > Ok, my bad, I didn't see JournalHandler class to use with Python logging: > http://www.freedesktop.org/software/systemd/python-systemd/journal.html#journalhandler-class > > Nevertheless, my question about communication between Python

Re: [systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-02 Thread Ludovic Gasc
Ok, my bad, I didn't see JournalHandler class to use with Python logging: http://www.freedesktop.org/software/systemd/python-systemd/journal.html#journalhandler-class Nevertheless, my question about communication between Python and journald remains. -- Ludovic Gasc (GMLudo) http://www.gmludo.eu/

[systemd-devel] Journald logging handler for Python 3 and AsyncIO integration

2015-05-02 Thread Ludovic Gasc
Hi, With the new release of Debian Jessie and systemd+journald integration, I'm looking for how to modernize our Python 3 toolbox to build daemons. For now on Debian Wheezy, we use a SysLogHandler with UNIX socket: https://docs.python.org/3.4/library/logging.handlers.html#sysloghandler + a custom