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

Method setLevel

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

* Sets the desired logging level for a particular log type. * @param {(string|Type)} type The log type. * @param {(!Level|string|number)} level The desired log level. * @throws {TypeError} if `type` is not a `string`.

(type, level)

Source from the content-addressed store, hash-verified

662 * @throws {TypeError} if `type` is not a `string`.
663 */
664 setLevel(type, level) {
665 if (typeof type !== 'string') {
666 throw TypeError('specified log type is not a string: ' + typeof type)
667 }
668 this.prefs_.set(type, level instanceof Level ? level : getLevel(level))
669 }
670
671 /**
672 * Converts this instance to its JSON representation.

Callers

nothing calls this directly

Calls 2

getLevelFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected