• Home
  • Raw
  • Download

Lines Matching full:handlers

84 # is only really there as a lower limit for user-defined levels. Handlers and
205 #Handlers, and so might arbitrary user threads. Since Handler code updates the
689 Loggers and Handlers can optionally use Filter instances to filter
724 A base class for loggers and handlers which allows them to share
774 _handlers = weakref.WeakValueDictionary() #map of handler names to handlers
775 _handlerList = [] # added to allow handlers to be removed in reverse of order initialized
785 acquire, release, handlers = _acquireLock, _releaseLock, _handlerList
786 if acquire and release and handlers:
789 if wr in handlers:
790 handlers.remove(wr)
809 interface. Handlers can optionally use Formatter instances to format
929 This version removes the handler from an internal map of handlers,
946 This method should be called from handlers when an exception is
1350 self.handlers = []
1499 all the handlers of this logger to handle the record.
1523 Call the handlers for the specified record.
1537 if not (hdlr in self.handlers):
1538 self.handlers.append(hdlr)
1548 if hdlr in self.handlers:
1549 self.handlers.remove(hdlr)
1555 See if this logger has any handlers configured.
1557 Loop through all handlers for this logger and its parents in the
1561 is checked for the existence of handlers.
1566 if c.handlers:
1577 Pass a record to all relevant handlers.
1579 Loop through all handlers for this logger and its parents in the
1583 will be the last logger whose handlers are called.
1588 for hdlr in c.handlers:
1601 sys.stderr.write("No handlers could be found for logger"
1790 See if the underlying logger has any handlers.
1836 This function does nothing if the root logger already has handlers
1861 handlers If specified, this should be an iterable of already created
1862 handlers, which will be added to the root handler. Any handler
1876 Added the ``handlers`` parameter. A ``ValueError`` is now thrown for
1877 incompatible arguments (e.g. ``handlers`` specified together with
1879 together with ``stream``, or ``handlers`` specified together with
1886 if len(root.handlers) == 0:
1887 handlers = kwargs.pop("handlers", None)
1888 if handlers is None:
1895 "specified together with 'handlers'")
1896 if handlers is None:
1904 handlers = [h]
1912 for h in handlers:
1944 has no handlers, call basicConfig() to add a console handler with a
1947 if len(root.handlers) == 0:
1956 no handlers, call basicConfig() to add a console handler with a pre-defined
1959 if len(root.handlers) == 0:
1966 information. If the logger has no handlers, basicConfig() is called to add
1974 no handlers, call basicConfig() to add a console handler with a pre-defined
1977 if len(root.handlers) == 0:
1989 no handlers, call basicConfig() to add a console handler with a pre-defined
1992 if len(root.handlers) == 0:
1999 no handlers, call basicConfig() to add a console handler with a pre-defined
2002 if len(root.handlers) == 0:
2009 the logger has no handlers, call basicConfig() to add a console handler
2012 if len(root.handlers) == 0:
2042 # because handlers have been closed but
2062 "No handlers could be found for logger XXX" one-off warning. This is
2096 if not logger.handlers: