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

Function addConsoleHandler

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

* Adds the console handler to the given logger. The console handler will log * all messages using the JavaScript Console API. * * @param {Logger=} opt_logger The logger to add the handler to; defaults * to the root logger.

(opt_logger)

Source from the content-addressed store, hash-verified

569 * to the root logger.
570 */
571function addConsoleHandler(opt_logger) {
572 let logger = opt_logger || logManager.root_
573 logger.addHandler(consoleHandler)
574}
575
576/**
577 * Removes the console log handler from the given logger.

Callers 1

installConsoleHandlerFunction · 0.85

Calls 1

addHandlerMethod · 0.45

Tested by

no test coverage detected