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

Method getLogger

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

* Retrieves a named logger, creating it in the process. This function will * implicitly create the requested logger, and any of its parents, if they * do not yet exist. * * @param {string} name the logger's name. * @return {!Logger} the requested logger.

(name)

Source from the content-addressed store, hash-verified

485 * @return {!Logger} the requested logger.
486 */
487 getLogger(name) {
488 if (!name) {
489 return this.root_
490 }
491 let parent = this.root_
492 for (let i = name.indexOf('.'); i != -1; i = name.indexOf('.', i + 1)) {
493 let parentName = name.substr(0, i)
494 parent = this.createLogger_(parentName, parent)
495 }
496 return this.createLogger_(name, parent)
497 }
498
499 /**
500 * Creates a new logger.

Callers 15

configureLoggingMethod · 0.95
constructorMethod · 0.80
logging.jsFile · 0.80
formatSpawnArgsFunction · 0.80
constructorMethod · 0.80
getLoggerFunction · 0.80
http.jsFile · 0.80
constructorMethod · 0.80
loggerMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
logging_test.jsFile · 0.80

Calls 1

createLogger_Method · 0.95

Tested by 6

captureLogRecordsMethod · 0.64
rootLoggerMethod · 0.64
test_uses_freebsdFunction · 0.64