On May 5, 8:33 pm, Mike Axiak <mcax...@gmail.com> wrote:
> Why does this facility need to exist within Django? At least one
> person [1] has written a middleware to do what you're saying. If it's
> that important, people will start to use that app. There are certainly
> many potential features people want out of logging, so it'd definitely
> be better suited for an external app to bake.

I don't think his isn't just about logging for applications: I believe
it's also about logging events within Django itself, which cannot be
done using a middleware or app.

Logging events within Django would be useful for diagnosing certain
types of problems, e.g. those which happen during start-up, request
workflow internal to Django etc.

You don't need special middleware (or anything else) for logging
support in Django applications; the middleware or app is generally
used to do things such as presenting logging output as part of a page,
or to provide some Django-specific handlers (e.g. emailing via Django
configured mailer, rather than using logging's SMTPHandler) and
conventions for logging.

Regards,

Vinay Sajip

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

Reply via email to