redirect stdout

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

    #1

    redirect stdout

    I'd like to build a module that would redirect stdout to send it to a logging
    module. I want to be able to use a python module that expects to print
    results using "print" or "sys.stdout.wri te()" and without modifying that
    module, be able to redirect it's stdout to a logger which will send the
    messages via datagrams to a server.

    Any ideas?

Working...