Re: [systemd-devel] PATCH: Integration with Python logging framework

2012-11-16 Thread Marti Raudsepp
On Tue, Nov 13, 2012 at 12:23 PM, Zbigniew Jędrzejewski-Szmek wrote: > I went ahead and merged the patch with some small changes, please have > a look. > JournalHandler is already useful right now Cool, thanks! Agreed, the rest could just be built on top of this code. On Tue, Nov 13, 2012 at 12:

Re: [systemd-devel] PATCH: Integration with Python logging framework

2012-11-13 Thread Zbigniew Jędrzejewski-Szmek
Hi, On Mon, Oct 15, 2012 at 11:30:09PM +0300, Marti Raudsepp wrote: > systemd fields and concluded that the approach I've taken with the > patch is too simplistic. I'd like to arrive at an API that makes it > easy to use journal, but is generic enough to be useful for other use > cases too. These

Re: [systemd-devel] PATCH: Integration with Python logging framework

2012-11-13 Thread Zbigniew Jędrzejewski-Szmek
Hi, I went ahead and merged the patch with some small changes, please have a look. JournalHandler is already useful right now, but the question how to log fields other than MESSAGE_ID remains open. Might be worthwhile to take the subject to python-dev for ideas. Zbyszek _

Re: [systemd-devel] PATCH: Integration with Python logging framework

2012-10-15 Thread Marti Raudsepp
On Sun, Oct 14, 2012 at 2:22 PM, David Strauss wrote: > This support has been on my task list for a while. Thanks for taking a > first stab at it. A cursory look at the patch looks promising, and > I'll probably commit it after some basic testing in the next few days. I've been pondering how deve

Re: [systemd-devel] PATCH: Integration with Python logging framework

2012-10-14 Thread David Strauss
On Tue, Oct 9, 2012 at 9:36 AM, Marti Raudsepp wrote: > The attached patch implements journal integration for the Python > logging framework. Tested on my Arch Linux machine, using Python 2.7 > and 3.2, but should be compatible with all versions from 2.5 through > 3.3 This support has been on my