Re: Need help in configuration for TimedRotatingFileHandler

2009-08-11 Thread Vinay Sajip
On Aug 10, 3:52 pm, Dave Angel wrote: > Lokesh Maremalla wrote: > > Traceback (most recent call last): > >   File "c:\Python25\lib\logging\handlers.py", line 74, in emit > >     self.doRollover() > >   File "c:\Python25\lib\logging\handlers.py", line 274, in doRollover > >     os.rename(self.baseF

Re: Need help in configuration for TimedRotatingFileHandler

2009-08-10 Thread Dave Angel
Lokesh Maremalla wrote: Code: mlogger = logging.getLogger("simpleExample") def a_view(request): mlogger.debug("a_view called") if request.method== "POST" : mlogger.debug("post function") else: mlogger.debug("serve function") Execution: step1: Executed the code and go

Re: Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Lokesh Maremalla
Hi Dave, I forgot to provide the information about the code how I am using logger Here is the complete scenario I have modified the code as mentioned in reply and is working fine. But still I am facing an issue and the issue is described below. In configuration file i have coded the TimedRotatin

Re: Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Lokesh Maremalla
Hi Dave, I have modified the code as mentioned in reply and is working fine. But still i am facing an issue and the issue is described below. In configuration file i have coded the TimedRotatingFileHandler like args=("G:\\lok_sib\\logs\\rotate_test", 'D', 1) step1: Executed the code and got the

Re: Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Dave Angel
Lokesh wrote: Hi, Need help in configure the TimedRotatingFileHandler from configuration file I have tried with the below code and ended up with the error, code is pasted below Error - IOError: [Errno 2] No such file or directory: 'G:\\lok_sib\ \logs\rotate_test' [loggers] keys=root,simpleExamp

Re: Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Jan Kaliszewski
09-08-2009 Lokesh wrote: I have tried with the below code and ended up with the error, code is pasted below Error - IOError: [Errno 2] No such file or directory: 'G:\\lok_sib\ \logs\rotate_test' Note that: '\r' is listed (interpreted by Python as 'carriage return' special character) and not '

Re: Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Kushal Kumaran
On Sun, Aug 9, 2009 at 5:13 PM, Lokesh wrote: > Hi, > > Need help in configure the TimedRotatingFileHandler from configuration > file > > I have tried with the below code and ended up with the error, code is > pasted below > Error - IOError: [Errno 2] No such file or directory: 'G:\\lok_sib\ > \log

Need help in configuration for TimedRotatingFileHandler

2009-08-09 Thread Lokesh
Hi, Need help in configure the TimedRotatingFileHandler from configuration file I have tried with the below code and ended up with the error, code is pasted below Error - IOError: [Errno 2] No such file or directory: 'G:\\lok_sib\ \logs\rotate_test' [loggers] keys=root,simpleExample [handlers] k