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

Class Level

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

* Defines a message level that may be used to control logging output. * * @final

Source from the content-addressed store, hash-verified

70 * @final
71 */
72class Level {
73 /**
74 * @param {string} name the level's name.
75 * @param {number} level the level's numeric value.
76 */
77 constructor(name, level) {
78 if (level < 0) {
79 throw new TypeError('Level must be >= 0')
80 }
81
82 /** @private {string} */
83 this.name_ = name
84
85 /** @private {number} */
86 this.value_ = level
87 }
88
89 /** This logger's name. */
90 get name() {
91 return this.name_
92 }
93
94 /** The numeric log level. */
95 get value() {
96 return this.value_
97 }
98
99 /** @override */
100 toString() {
101 return this.name
102 }
103}
104
105/**
106 * Indicates no log messages should be recorded.

Callers 4

init_loggingFunction · 0.50
LevelMethod · 0.50
InitializeMethod · 0.50
LevelMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected