redirect stdout

Discussion in 'Python' started by Neal Becker, Apr 8, 2005.

  1. Neal Becker

    Neal Becker Guest

    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.write()" 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?
     
    Neal Becker, Apr 8, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VisionSet
    Replies:
    6
    Views:
    9,663
    Sudsy
    Sep 20, 2003
  2. Elad
    Replies:
    0
    Views:
    422
  3. Sal
    Replies:
    1
    Views:
    844
  4. Andreas S
    Replies:
    3
    Views:
    275
    Eric Hodel
    Dec 9, 2006
  5. Replies:
    2
    Views:
    359
    A. Sinan Unur
    Dec 7, 2005
Loading...

Share This Page