redirect stdout

N

Neal Becker

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top