Django Logging database queries

27 views
Skip to first unread message

Anju SB

unread,
Mar 13, 2014, 3:02:48 AM3/13/14
to django...@googlegroups.com
Dear All,

I am a newbie in Django programming and developing a web application using django 1.3 and postgresql.  I want to log insert, update, delete and failed select queries 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 to move on 

Thanking you 
Anju 

Venkatraman S

unread,
Mar 19, 2014, 4:02:40 AM3/19/14
to django...@googlegroups.com
INSERT/UPDATE/DELETE/SELECT cover almost all types that will be used. What else is getting logged?

And what do you mean by 'FAILED' Select queries? Do you mean Timed-out ones?



--
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...@googlegroups.com.
To post to this group, send email to django...@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/f5d6457e-9b23-4395-86c0-89f673689d46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages