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

Function addConsoleHandler

javascript/selenium-webdriver/lib/logging.js:606–609  ·  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

604 * to the root logger.
605 */
606function addConsoleHandler(opt_logger) {
607 let logger = opt_logger || logManager.root_
608 logger.addHandler(consoleHandler)
609}
610
611/**
612 * 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