MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / addHandler

Method addHandler

javascript/selenium-webdriver/lib/logging.js:325–330  ·  view source on GitHub ↗

* Adds a handler to this logger. The handler will be invoked for each message * logged with this instance, or any of its descendants. * * @param {function(!Entry)} handler the handler to add.

(handler)

Source from the content-addressed store, hash-verified

323 * @param {function(!Entry)} handler the handler to add.
324 */
325 addHandler(handler) {
326 if (!this.handlers_) {
327 this.handlers_ = new Set()
328 }
329 this.handlers_.add(handler)
330 }
331
332 /**
333 * Removes a handler from this logger.

Callers 8

captureLogRecordsMethod · 0.95
logging.jsFile · 0.45
addConsoleHandlerFunction · 0.45
logging_test.jsFile · 0.45
logging.jsFile · 0.45
__init__.pyFile · 0.45

Calls 1

addMethod · 0.65