Re: logging module

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matimus

    Re: logging module

    On Oct 23, 7:58 am, "Werner F. Bruhin" <werner.bru...@ free.frwrote:
    I am starting to use the logging module.
    >
    Simple log to file and/or console work very nicely.
    >
    Even managed to get TimedRotatingFi leHandler 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
  • Gabriel Genellina

    #2
    Re: logging module

    En Thu, 23 Oct 2008 14:52:47 -0200, Matimus <mccredie@gmail .comescribió:
    On Oct 23, 7:58 am, "Werner F. Bruhin" <werner.bru...@ free.frwrote:
    >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.

    Writing the wxPython app is left to the OP :)

    --
    Gabriel Genellina

    Comment

    Working...