Re: os.system and loggers

2011-01-11 Thread Tim
On Jan 10, 1:01 pm, Carl Banks wrote: > On Jan 10, 8:29 am, Tim wrote: > > > > > > > > > > > On Jan 7, 11:24 am, Tim wrote: > > > > hi, I'm using a 3rd-party python program that uses the python logging > > > facility and also makes calls to os.system. I'm trying to capture its > > > output to a

Re: os.system and loggers

2011-01-10 Thread Carl Banks
On Jan 10, 8:29 am, Tim wrote: > I think I may have included too much fluff in my original question. > The main thing I wonder is whether I can attach a log handler to > stdout in such a way that os.system calls will write to that handler > instead of the console. -- http://mail.python.org/mailma

Re: os.system and loggers

2011-01-10 Thread Carl Banks
On Jan 10, 8:29 am, Tim wrote: > On Jan 7, 11:24 am, Tim wrote: > > > > > > > hi, I'm using a 3rd-party python program that uses the python logging > > facility and also makes calls to os.system. I'm trying to capture its > > output to a file. > > > In my own code, I've taken control of the logge

Re: os.system and loggers

2011-01-10 Thread Tim
On Jan 7, 11:24 am, Tim wrote: > hi, I'm using a 3rd-party python program that uses the python logging > facility and also makes calls to os.system. I'm trying to capture its > output to a file. > > In my own code, I've taken control of the loggers that are setup in > the other program by removing

os.system and loggers

2011-01-07 Thread Tim
hi, I'm using a 3rd-party python program that uses the python logging facility and also makes calls to os.system. I'm trying to capture its output to a file. In my own code, I've taken control of the loggers that are setup in the other program by removing its StreamHandler and replacing with FileH