Use Python's logging.
http://docs.python.org/library/logging
If you're using the 1.3 beta, logging config is built into settings.py.
Then, in your try/except blocks, you can log anything you want; pass the
exception message and the traceback into your call to the logger, and
it'll all be there when you want it.
You'll probably want to add multiple logging handlers. We use a file
handler and an e-mail handler. Anything log.error and above is e-mailed
in addition to being written to log files. Everything else is just
written to log files.
Shawn
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@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.