logging module

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Oct 24 02:02:48 CEST 2008


En Thu, 23 Oct 2008 14:52:47 -0200, Matimus <mccredie at gmail.com> escribió:
> On Oct 23, 7:58 am, "Werner F. Bruhin" <werner.bru... at free.fr> wrote:

>> 1. I would like to have a "log viewer" a wxPython based app to be able
>> to look at a log generated by another script.
>
> Running in a separate process? That isn't possible. Okay, well, it
> isn't possible without doing a fair amount of work on your own. You
> would probably need to create a handler that writes everything to a
> pipe or a socket, and then have your second application read from the
> pipe/socket and display it. I don't think that feature exists right
> now though.

Yes, it does, it's easy, and it's one of the examples included in the  
logging documentation.
http://www.python.org/doc/2.6/library/logging.html#sending-and-receiving-logging-events-across-a-network
Writing the wxPython app is left to the OP :)

-- 
Gabriel Genellina




More information about the Python-list mailing list