From d552da1f8d42b7c6db992fee42bc4781f5fdde43 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Mon, 10 Nov 2014 23:21:31 +0200 Subject: Fixed #22407 -- Added AdminEmailHandler.send_mail(). --- docs/releases/1.8.txt | 7 +++++++ docs/topics/logging.txt | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index fec2e2b4bc..729c19f3c2 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -271,6 +271,13 @@ Internationalization reusable apps. It also allows overriding those custom formats in your main Django project. +Logging +^^^^^^^ + +* The :class:`django.utils.log.AdminEmailHandler` class now has a + :meth:`~django.utils.log.AdminEmailHandler.send_mail` method to make it more + subclass friendly. + Management Commands ^^^^^^^^^^^^^^^^^^^ 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 ------- -- cgit v1.3