diff options
| author | Curtis Maloney <curtis@tinbrain.net> | 2019-05-17 00:51:36 +1000 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-05-16 16:51:36 +0200 |
| commit | 4442ee8a51ad04730e4af2833728c345042b69cf (patch) | |
| tree | 23e93ef9d7884339dfcd707aa0f48df509676fd3 /docs | |
| parent | 60b6a7ea9d9bd759ee623f080165416bc0207e59 (diff) | |
Added filename caption to LOGGING documentation examples.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/logging.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt index ca23609cee..d1aa8a3ea9 100644 --- a/docs/topics/logging.txt +++ b/docs/topics/logging.txt @@ -242,6 +242,9 @@ However, to give you a taste of what is possible, here are several examples. First, here's a simple configuration which writes all logging from the :ref:`django-logger` logger to a local file:: + .. code-block:: python + :caption: settings.py + LOGGING = { 'version': 1, 'disable_existing_loggers': False, @@ -274,6 +277,9 @@ messages. With this config, however, you can also set the environment variable ``DJANGO_LOG_LEVEL=DEBUG`` to see all of Django's debug logging which is very verbose as it includes all database queries:: + .. code-block:: python + :caption: settings.py + import os LOGGING = { @@ -294,6 +300,9 @@ verbose as it includes all database queries:: Finally, here's an example of a fairly complex logging setup:: + .. code-block:: python + :caption: settings.py + LOGGING = { 'version': 1, 'disable_existing_loggers': False, |
