• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:dllname

1 :mod:`logging.handlers` --- Logging handlers
7 .. moduleauthor:: Vinay Sajip <vinay_sajip@red-dove.com>
8 .. sectionauthor:: Vinay Sajip <vinay_sajip@red-dove.com>
17 * :ref:`Basic Tutorial <logging-basic-tutorial>`
18 * :ref:`Advanced Tutorial <logging-advanced-tutorial>`
19 * :ref:`Logging Cookbook <logging-cookbook>`
21 --------------
30 .. _stream-handler:
37 file-like object (or, more precisely, any object which supports :meth:`write`
86 .. _file-handler:
124 .. _null-handler:
132 does not do any formatting or output. It is essentially a 'no-op' handler
153 See :ref:`library-config` for more information on how to use
156 .. _watched-file-handler:
175 open log files cannot be moved or renamed - logging opens the files with
176 exclusive locks - and so there is no need for such a handler. Furthermore,
211 .. _base-rotating-handler:
292 The reason the attributes exist is to save you having to subclass - you can use
302 For an example, see :ref:`cookbook-rotator-namer`.
305 .. _rotating-file-handler:
328 to set *backupCount* to at least 1, and have a non-zero *maxBytes*.
329 When *backupCount* is non-zero, the system will save old log files by appending
355 .. _timed-rotating-file-handler:
375 +----------------+----------------------------+-------------------------+
379 +----------------+----------------------------+-------------------------+
381 +----------------+----------------------------+-------------------------+
383 +----------------+----------------------------+-------------------------+
385 +----------------+----------------------------+-------------------------+
386 | ``'W0'-'W6'`` | Weekday (0=Monday) | Used to compute initial |
388 +----------------+----------------------------+-------------------------+
392 +----------------+----------------------------+-------------------------+
394 When using weekday-based rotation, specify 'W0' for Monday, 'W1' for
399 The extensions are date-and-time based, using the strftime format
400 ``%Y-%m-%d_%H-%M-%S`` or a leading portion thereof, depending on the
464 .. _socket-handler:
480 using the value in ``host`` - otherwise, a TCP socket is created.
491 packet. If the connection was previously lost, re-establishes the
530 Send a pickled byte-string *packet* to the socket. The format of the sent
531 byte-string is as described in the documentation for
540 Tries to create a socket; on failure, uses an exponential back-off
560 .. _datagram-handler:
577 using the value in ``host`` - otherwise, a UDP socket is created.
596 Send a pickled byte-string to a socket. The format of the sent byte-string
600 .. _syslog-handler:
625 address you should be using for a domain socket - it's system dependent.
649 versions of these daemons expected a NUL terminated message - even
657 made configurable, through the use of a class-level attribute,
665 can now be specified using a class-level attribute, defaulting to
674 or integers - if strings are passed, internal mapping dictionaries are
682 +--------------------------+---------------+
686 +--------------------------+---------------+
688 +--------------------------+---------------+
690 +--------------------------+---------------+
692 +--------------------------+---------------+
694 +--------------------------+---------------+
696 +--------------------------+---------------+
698 +--------------------------+---------------+
700 +--------------------------+---------------+
704 +---------------+---------------+
708 +---------------+---------------+
710 +---------------+---------------+
712 +---------------+---------------+
714 +---------------+---------------+
716 +---------------+---------------+
718 +---------------+---------------+
720 +---------------+---------------+
722 +---------------+---------------+
724 +---------------+---------------+
726 +---------------+---------------+
728 +---------------+---------------+
730 +---------------+---------------+
732 +---------------+---------------+
734 +---------------+---------------+
736 +---------------+---------------+
738 +---------------+---------------+
740 +---------------+---------------+
742 +---------------+---------------+
744 +---------------+---------------+
746 +---------------+---------------+
757 .. _nt-eventlog-handler:
768 .. class:: NTEventLogHandler(appname, dllname=None, logtype='Application')
772 appropriate registry entry is created using this name. The *dllname* should give
775 - this is installed with the Win32 extensions and contains some basic
788 to see the events as you intended in the Event Log Viewer - it needs to be
824 .. _smtp-handler:
837 *toaddrs* should be a list of strings. To specify a non-standard SMTP port, use
844 supplied. The tuple should be either an empty tuple, or a single-value tuple
845 with the name of a keyfile, or a 2-value tuple with the names of the keyfile
862 If you want to specify a subject line which is record-dependent, override
865 .. _memory-handler:
944 .. _http-handler:
961 HTTPS connection. If *credentials* is specified, it should be a 2-tuple
972 Provides a dictionary, based on ``record``, which is to be URL-encoded
980 Sends the record to the web server as a URL-encoded dictionary. The
993 .. _queue-handler:
1016 queue-like object; it's used as-is by the :meth:`enqueue` method, which
1038 removes unpickleable items from the record in-place.
1052 .. _queue-listener:
1065 because it works hand-in-hand with :class:`QueueHandler`.
1078 will handle entries placed on the queue. The queue can be any queue-like
1079 object; it's passed as-is to the :meth:`dequeue` method, which needs
1087 versions - to always pass each message to each handler.
1104 This implementation just returns the passed-in record. You may want to