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
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
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
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
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
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 '
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
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