MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / addHandler

Method addHandler

tools/python-3.11.9-amd64/Lib/logging/__init__.py:1646–1655  ·  view source on GitHub ↗

Add the specified handler to this logger.

(self, hdlr)

Source from the content-addressed store, hash-verified

1644 self.callHandlers(record)
1645
1646 def addHandler(self, hdlr):
1647 """
1648 Add the specified handler to this logger.
1649 """
1650 _acquireLock()
1651 try:
1652 if not (hdlr in self.handlers):
1653 self.handlers.append(hdlr)
1654 finally:
1655 _releaseLock()
1656
1657 def removeHandler(self, hdlr):
1658 """

Callers 12

_install_loggersFunction · 0.80
add_handlersMethod · 0.80
basicConfigFunction · 0.80
_showwarningFunction · 0.80
log_to_stderrFunction · 0.80
__init__.pyFile · 0.80
mainFunction · 0.80
__init__.pyFile · 0.80
__init__.pyFile · 0.80
setup_loggingFunction · 0.80
__init__.pyFile · 0.80
add_stderr_loggerFunction · 0.80

Calls 3

_acquireLockFunction · 0.85
_releaseLockFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected