Thanks to Rolando for he's answer
http://groups.google.com/group/django-es/browse_thread/thread/c2107f2b172eb0c0/6f5ffb8235326e56?show_docid=6f5ffb8235326e56


On Sep 17, 11:35 am, ferran <pinksh...@gmail.com> wrote:
> hello,
> I don't understand because django-mailer truncate my log file every
> time run cronjob for send email, this is my config in settings.py
> import logging
>
> LOGFILE = "site.log"
> logging.basicConfig(level=logging.DEBUG,
>                     format='%(asctime)s %(name)-12s %(levelname)-8s %
> (lineno)d %(message)s',
>                     datefmt='%a, %d %b %Y %H:%M:%S',
>                     filename=os.path.join(PROJECT_PATH, LOGFILE),
>                     filemode='w')
>
> and in models or view i use:
> import logging
> log = logging.getLogger("order.views")
> log.debug("hello")
>
> , any idea?
> thanks in advanced

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to