How can I log all SQL queries that my django application performed?
I want to log everything, including SQLs from admin site. I saw this question and a FAQ answer but I still can't figure out where should I put
from django.db import connection
connection.queries
to log everything to one file?
So my question is - what should I do to have a file (say all-sql.log) where all SQL statements are logged?
Question&Answers:os