Re: logging not working with Django

2010-04-14 Thread Alan
Many thanks Rolando, I can't believe I calling the wrong function... Fixed and working now. Cheers, Alan On 14 Apr, 19:07, Rolando Espinoza La Fuente wrote: > On Wed, Apr 14, 2010 at 1:25 PM, Alan wrote: > > [SNIP] > > > handler = logging.handlers.TimedRotatingFileHandler(LOG_FILENAME, > > ba

Re: logging not working with Django

2010-04-14 Thread Rolando Espinoza La Fuente
On Wed, Apr 14, 2010 at 1:25 PM, Alan wrote: [SNIP] > handler = logging.handlers.TimedRotatingFileHandler(LOG_FILENAME, > backupCount=1, maxBytes = 1024) That handler doesn't have maxBytes keyword argument http://docs.python.org/library/logging.html#timedrotatingfilehandler ~Rolando -- You rec

logging not working with Django

2010-04-14 Thread Alan
Hi there, I am trying to setup logging in my setting.py. All seemed to be working with below: handler = logging.handlers.TimedRotatingFileHandler(LOG_FILENAME, backupCount=1) until I decided to make it: handler = logging.handlers.TimedRotatingFileHandler(LOG_FILENAME, backupCount=1, max