MCPcopy
hub / github.com/SeleniumHQ/selenium / getLogger

Method getLogger

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

450 * @return {!Logger} the requested logger.
451 */
452 getLogger(name) {
453 if (!name) {
454 return this.root_
455 }
456 let parent = this.root_
457 for (let i = name.indexOf('.'); i != -1; i = name.indexOf('.', i + 1)) {
458 let parentName = name.substr(0, i)
459 parent = this.createLogger_(parentName, parent)
460 }
461 return this.createLogger_(name, parent)
462 }
463
464 /**
465 * 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
constructorMethod · 0.80
constructorMethod · 0.80
logging_test.jsFile · 0.80
webdriver_test.jsFile · 0.80

Calls 1

createLogger_Method · 0.95

Tested by 4

rootLoggerMethod · 0.64
test_uses_freebsdFunction · 0.64