Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Side by Side Diff: Doc/library/logging.handlers.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/io.rst ('k') | Doc/library/mmap.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`logging.handlers` --- Logging handlers 1 :mod:`logging.handlers` --- Logging handlers
2 ============================================ 2 ============================================
3 3
4 .. module:: logging.handlers 4 .. module:: logging.handlers
5 :synopsis: Handlers for the logging module. 5 :synopsis: Handlers for the logging module.
6 6
7 7
8 .. moduleauthor:: Vinay Sajip <vinay_sajip@red-dove.com> 8 .. moduleauthor:: Vinay Sajip <vinay_sajip@red-dove.com>
9 .. sectionauthor:: Vinay Sajip <vinay_sajip@red-dove.com> 9 .. sectionauthor:: Vinay Sajip <vinay_sajip@red-dove.com>
10 10
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 versions of these daemons don't expect the NUL byte but strip it off 444 versions of these daemons don't expect the NUL byte but strip it off
445 if it's there, and even more recent daemons (which adhere more closely 445 if it's there, and even more recent daemons (which adhere more closely
446 to RFC 5424) pass the NUL byte on as part of the message. 446 to RFC 5424) pass the NUL byte on as part of the message.
447 447
448 To enable easier handling of syslog messages in the face of all these 448 To enable easier handling of syslog messages in the face of all these
449 differing daemon behaviours, the appending of the NUL byte has been 449 differing daemon behaviours, the appending of the NUL byte has been
450 made configurable, through the use of a class-level attribute, 450 made configurable, through the use of a class-level attribute,
451 ``append_nul``. This defaults to ``True`` (preserving the existing 451 ``append_nul``. This defaults to ``True`` (preserving the existing
452 behaviour) but can be set to ``False`` on a ``SysLogHandler`` instance 452 behaviour) but can be set to ``False`` on a ``SysLogHandler`` instance
453 in order for that instance to *not* append the NUL terminator. 453 in order for that instance to *not* append the NUL terminator.
454
455 .. versionchanged:: 3.3
456 (See: :issue:`12419`.) In earlier versions, there was no facility for
457 an "ident" or "tag" prefix to identify the source of the message. This
458 can now be specified using a class-level attribute, defaulting to
459 ``""`` to preserve existing behaviour, but which can be overridden on
460 a ``SysLogHandler`` instance in order for that instance to prepend
461 the ident to every message handled. Note that the provided ident must
462 be text, not bytes, and is prepended to the message exactly as is.
463 454
464 .. method:: encodePriority(facility, priority) 455 .. method:: encodePriority(facility, priority)
465 456
466 Encodes the facility and priority into an integer. You can pass in strings 457 Encodes the facility and priority into an integer. You can pass in strings
467 or integers - if strings are passed, internal mapping dictionaries are 458 or integers - if strings are passed, internal mapping dictionaries are
468 used to convert them to integers. 459 used to convert them to integers.
469 460
470 The symbolic ``LOG_`` values are defined in :class:`SysLogHandler` and 461 The symbolic ``LOG_`` values are defined in :class:`SysLogHandler` and
471 mirror the values defined in the ``sys/syslog.h`` header file. 462 mirror the values defined in the ``sys/syslog.h`` header file.
472 463
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 865
875 .. seealso:: 866 .. seealso::
876 867
877 Module :mod:`logging` 868 Module :mod:`logging`
878 API reference for the logging module. 869 API reference for the logging module.
879 870
880 Module :mod:`logging.config` 871 Module :mod:`logging.config`
881 Configuration API for the logging module. 872 Configuration API for the logging module.
882 873
883 874
OLDNEW
« no previous file with comments | « Doc/library/io.rst ('k') | Doc/library/mmap.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+