There are many examples online but what is the best way to configure the LOGGING Dictionary in settings.py to capture everything that is going on with the solution and it's associated apps - from small errors to sql/model calls.
Cheers!
Checkout the Django logging doc and these answers may be useful answer 1 and answer2
and customize according to your application
hope this helps you