diff options
| author | Frédéric Massart <fmcell@gmail.com> | 2017-11-21 18:21:31 +0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-11-21 12:05:49 -0500 |
| commit | 427a8b4485b689dbd71be9bb994b787f859112d1 (patch) | |
| tree | 77ae1f6df4e92b3b558c2817734edcbb754422c7 /docs/topics | |
| parent | 286120444f0fc5aa901dfc36a3f864e94beb2ffb (diff) | |
[2.0.x] Clarified who the AdminEmailHandler emails.
Backport of a5f1e5809f26d93ea0c6010bb44895b3d1992089 from master
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/logging.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/topics/logging.txt b/docs/topics/logging.txt index 800be95885..26054cd2f9 100644 --- a/docs/topics/logging.txt +++ b/docs/topics/logging.txt @@ -377,13 +377,13 @@ This logging configuration does the following things: * Defines two handlers: - * ``console``, a StreamHandler, which will print any ``INFO`` - (or higher) message to stderr. This handler uses the ``simple`` output - format. + * ``console``, a :class:`~logging.StreamHandler`, which prints any ``INFO`` + (or higher) message to ``sys.stderr``. This handler uses the ``simple`` + output format. - * ``mail_admins``, an AdminEmailHandler, which will email any - ``ERROR`` (or higher) message to the site admins. This handler uses - the ``special`` filter. + * ``mail_admins``, an :class:`AdminEmailHandler`, which emails any ``ERROR`` + (or higher) message to the site :setting:`ADMINS`. This handler uses the + ``special`` filter. * Configures three loggers: @@ -590,7 +590,7 @@ Python logging module. .. class:: AdminEmailHandler(include_html=False, email_backend=None) - This handler sends an email to the site admins for each log + This handler sends an email to the site :setting:`ADMINS` for each log message it receives. If the log record contains a ``request`` attribute, the full details |
