Hi Anju, Firstly - if you want to filter log messages that meet a specific criterion, you can install a filter into your logging configuration. Python and Django's logging documentation both contain sections about filtering:
http://docs.python.org/2/library/logging.html#filter-objects https://docs.djangoproject.com/en/dev/topics/logging/#id4 Secondly - I'd be questioning whether Django is the right place to be logging this. Your database also has logging capabilities; I'd be looking to see whether you can configure your database to produce the logs you need. Yours, Russ Magee %-) On Thu, Mar 13, 2014 at 3:18 PM, Anju SB <anjusb...@gmail.com> wrote: > Dear All, > > I am a newbie in Django programming. I want to log insert, update, > delete and failed select query in my daily log file. I configured > 'django.db.backends' in the logger of the Logging dict in Settings.py. But > I get all the queries in that application. I need only insert, update, > delete and failed select queries. > > Please help me > > Thanking you > > Anju > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/4b34ac77-5a38-46e1-875e-f74c600c7e08%40googlegroups.com<https://groups.google.com/d/msgid/django-users/4b34ac77-5a38-46e1-875e-f74c600c7e08%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJxq84-qxE9uSb_nt1YF-QyeFySmg7emTv0GPeay2dK0EoVZgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.