Lines Matching refs:handlers

792     A base class for loggers and handlers which allows them to share
842 _handlers = weakref.WeakValueDictionary() #map of handler names to handlers
843 _handlerList = [] # added to allow handlers to be removed in reverse of order initialized
853 acquire, release, handlers = _acquireLock, _releaseLock, _handlerList
854 if acquire and release and handlers:
857 handlers.remove(wr)
1002 This version removes the handler from an internal map of handlers,
1020 This method should be called from handlers when an exception is
1456 self.handlers = []
1614 all the handlers of this logger to handle the record.
1638 Call the handlers for the specified record.
1652 if not (hdlr in self.handlers):
1653 self.handlers.append(hdlr)
1663 if hdlr in self.handlers:
1664 self.handlers.remove(hdlr)
1670 See if this logger has any handlers configured.
1672 Loop through all handlers for this logger and its parents in the
1676 is checked for the existence of handlers.
1681 if c.handlers:
1692 Pass a record to all relevant handlers.
1694 Loop through all handlers for this logger and its parents in the
1698 will be the last logger whose handlers are called.
1703 for hdlr in c.handlers:
1716 sys.stderr.write("No handlers could be found for logger"
1909 See if the underlying logger has any handlers.
1957 This function does nothing if the root logger already has handlers
1983 handlers If specified, this should be an iterable of already created
1984 handlers, which will be added to the root handler. Any handler
1987 force If this keyword is specified as true, any existing handlers
2009 Added the ``handlers`` parameter. A ``ValueError`` is now thrown for
2010 incompatible arguments (e.g. ``handlers`` specified together with
2012 together with ``stream``, or ``handlers`` specified together with
2029 for h in root.handlers[:]:
2032 if len(root.handlers) == 0:
2033 handlers = kwargs.pop("handlers", None)
2034 if handlers is None:
2041 "specified together with 'handlers'")
2042 if handlers is None:
2055 handlers = [h]
2063 for h in handlers:
2094 has no handlers, call basicConfig() to add a console handler with a
2097 if len(root.handlers) == 0:
2110 no handlers, call basicConfig() to add a console handler with a pre-defined
2113 if len(root.handlers) == 0:
2120 information. If the logger has no handlers, basicConfig() is called to add
2128 no handlers, call basicConfig() to add a console handler with a pre-defined
2131 if len(root.handlers) == 0:
2143 no handlers, call basicConfig() to add a console handler with a pre-defined
2146 if len(root.handlers) == 0:
2153 no handlers, call basicConfig() to add a console handler with a pre-defined
2156 if len(root.handlers) == 0:
2163 the logger has no handlers, call basicConfig() to add a console handler
2166 if len(root.handlers) == 0:
2196 # because handlers have been closed but
2216 "No handlers could be found for logger XXX" one-off warning. This is
2253 if not logger.handlers: