summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-11-10 23:21:31 +0200
committerTim Graham <timograham@gmail.com>2014-11-15 09:38:19 +0100
commitd552da1f8d42b7c6db992fee42bc4781f5fdde43 (patch)
treedadee4405fb21d346345530cedc2a01d19dab89b /docs/topics
parenta305695f28cb15165a19c3871aec878a230a5105 (diff)
Fixed #22407 -- Added AdminEmailHandler.send_mail().
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/logging.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt
index e1056e6e96..f44383598f 100644
--- a/docs/topics/logging.txt
+++ b/docs/topics/logging.txt
@@ -563,8 +563,15 @@ Python logging module.
By default, an instance of the email backend specified in
:setting:`EMAIL_BACKEND` will be used.
-.. _Sentry: https://pypi.python.org/pypi/sentry
+ .. method:: send_mail(subject, message, *args, **kwargs)
+
+ .. versionadded:: 1.8
+ Sends emails to admin users. To customize this behavior, you can
+ subclass the :class:`~django.utils.log.AdminEmailHandler` class and
+ override this method.
+
+.. _Sentry: https://pypi.python.org/pypi/sentry
Filters
-------