logging module

Matimus mccredie at gmail.com
Thu Oct 23 18:52:47 CEST 2008


On Oct 23, 7:58 am, "Werner F. Bruhin" <werner.bru... at free.fr> wrote:
> I am starting to use the logging module.
>
> Simple log to file and/or console work very nicely.
>
> Even managed to get TimedRotatingFileHandler to work.
>
> The problem I am trying to solve.
>
> 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.

Matt



More information about the Python-list mailing list