From 504a215c22ab628fe2a9f3054201cdaa92a14fd1 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 27 Feb 2012 11:16:20 -0400 Subject: [PATCH] Added another example to the debug section --- docs/topics/development.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/topics/development.rst b/docs/topics/development.rst index 84f4389653..5ef1e680d6 100644 --- a/docs/topics/development.rst +++ b/docs/topics/development.rst @@ -57,7 +57,7 @@ Debugging --------- **Mayan EDMS** makes extensive use of Django's new `logging capabilities`_. -To enable debug logging for the documents app for example add the following +To enable debug logging for the ``documents`` app for example add the following lines to your ``settings_local.py`` file:: LOGGING = { @@ -90,4 +90,15 @@ lines to your ``settings_local.py`` file:: } } + +Likewise, to see the debug output of the ``tags`` app, just add the following inside the ``loggers`` block:: + + + 'tags': { + 'handlers':['console'], + 'propagate': True, + 'level':'DEBUG', + }, + + .. _`logging capabilities`: https://docs.djangoproject.com/en/dev/topics/logging