Re: Separate output for log file and stdout

2008-05-21 Thread amit . uttam
On May 19, 4:05 pm, "Kam-Hung Soh" <[EMAIL PROTECTED]> wrote: > On Tue, 20 May 2008 06:58:28 +1000, <[EMAIL PROTECTED]> wrote: > > On May 16, 6:37 pm, Ben Finney <[EMAIL PROTECTED]> > > wrote: > >> [EMAIL PROTECTED] writes: > >> > I've recently jumped big time into python and I'm working on a > >>

Re: Separate output for log file and stdout

2008-05-21 Thread amit . uttam
On May 19, 4:05 pm, "Kam-Hung Soh" <[EMAIL PROTECTED]> wrote: > On Tue, 20 May 2008 06:58:28 +1000, <[EMAIL PROTECTED]> wrote: > > On May 16, 6:37 pm, Ben Finney <[EMAIL PROTECTED]> > > wrote: > >> [EMAIL PROTECTED] writes: > >> > I've recently jumped big time into python and I'm working on a > >>

Re: Separate output for log file and stdout

2008-05-19 Thread amit . uttam
On May 16, 6:37 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > > I've recently jumped big time into python and I'm working on a > > software program for testing automation. > > Welcome, to both fields :-) > Thanks! I am having a great time learning and coding in python. It

Separate output for log file and stdout

2008-05-16 Thread amit . uttam
Hey everyone, I've recently jumped big time into python and I'm working on a software program for testing automation. I had a question about proper logging of output. What I would like is: 1. a function syslog (to log output to log file only) 2. a function stdout (to log output to stdout only)

Re: SImple python print question

2008-05-16 Thread amit . uttam
On May 16, 4:03 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On May 16, 6:38 pm, [EMAIL PROTECTED] wrote: > > > > > Hey there, > > > I have a simple question about python print statement. Take the > > following code snippet for example... > > > 1 print "-#- executing: %s" % section, > > 2 tests[sect

Re: SImple python print question

2008-05-16 Thread amit . uttam
On May 16, 4:02 pm, Hans Nowak <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hey there, > > > I have a simple question about python print statement. Take the > > following code snippet for example... > > > 1 print "-#- executing: %s" % section, > > 2 tests[section] = test.testcase(name=

SImple python print question

2008-05-16 Thread amit . uttam
Hey there, I have a simple question about python print statement. Take the following code snippet for example... 1 print "-#- executing: %s" % section, 2 tests[section] = test.testcase(name=config.get(section,'name')) 3 tests[section].runTest() 4 printStatus(tests[section]) Now the problem is th