Re: Logging output to be redirected to a particular folder

2012-11-06 Thread Peter Otten
anuradha.raghupathy2...@gmail.com wrote: Hi, Below is the python code that I have. I want to redirect the output to my C drive..myapp.log. I am editing and creating scripts in IDLE and running it as a python shell or module. Can you help? import logging def main():

RE: Logging output to be redirected to a particular folder

2012-11-06 Thread Prasad, Ramit
Dennis Lee Bieber wrote: On Tue, 06 Nov 2012 13:26:11 +0100, Peter Otten __pete...@web.de declaimed the following in gmane.comp.python.general: anuradha.raghupathy2...@gmail.com wrote: [snip] def main(): logging.basicConfig(Filename='c://myapp.log', level=logging.ERROR) Python

Re: Logging output to be redirected to a particular folder

2012-11-06 Thread anuradha . raghupathy2010
Thanks ...this works perfectly fine now. On Tuesday, November 6, 2012 11:28:46 PM UTC+5:30, Prasad, Ramit wrote: Dennis Lee Bieber wrote: On Tue, 06 Nov 2012 13:26:11 +0100, Peter Otten __pete...@web.de declaimed the following in gmane.comp.python.general: