MCPcopy Index your code
hub / github.com/python/cpython / addHandler

Method addHandler

Lib/logging/__init__.py:1686–1692  ·  view source on GitHub ↗

Add the specified handler to this logger.

(self, hdlr)

Source from the content-addressed store, hash-verified

1684 self.callHandlers(record)
1685
1686 def addHandler(self, hdlr):
1687 """
1688 Add the specified handler to this logger.
1689 """
1690 with _lock:
1691 if not (hdlr in self.handlers):
1692 self.handlers.append(hdlr)
1693
1694 def removeHandler(self, hdlr):
1695 """

Callers 15

_install_loggersFunction · 0.80
add_handlersMethod · 0.80
basicConfigFunction · 0.80
_showwarningFunction · 0.80
setUpMethod · 0.80
_caplogFunction · 0.80
test_filenameMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
test_flush_on_closeMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by 15

setUpMethod · 0.64
_caplogFunction · 0.64
test_filenameMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
test_flush_on_closeMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64