Re: Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Lokesh Maremalla
by another process Python version - 2.5.4 I guess my output should be like this for the next day -a new log file rotate_test. should generate in the respective location Please correct me if I am wrong. Thanks for your time. Regards, Lokesh -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Lokesh Maremalla
over() File "c:\Python25\lib\logging\handlers.py", line 274, in doRollover os.rename(self.baseFilename, dfn) WindowsError: [Error 32] The process cannot access the file because it is being used by another process Python version - 2.5.4 Thanks for your time. Regards, Lokesh On Mon, Au

Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Lokesh
- %(levelname)s - %(message)s datefmt='%Y-%m-%d %H:%M:%S' Thanks or your time Regards, Lokesh -- http://mail.python.org/mailman/listinfo/python-list

Re: N00b question on Py modules

2007-05-07 Thread lokesh . jagasia
Thanks a lot for the responses ppl. Python's treatment of global variables was an eye-opener. I have coded in Java & C/C++ in the past and there the behaviour is diametrically opposite. Cheers -- http://mail.python.org/mailman/listinfo/python-list

N00b question on Py modules

2007-05-07 Thread lokesh . jagasia
Hi. Sorry to sound like a noob but that's what I am when it comes to Python. I just wrote the below module and it behaves funny. My python module: _exitcode = 0 def setExitCode(): _exitcode = 1 if __name__ == '__main__': print _exitcode setExitCode() print _exitcode Actual O/P: