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

Method constructor

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

* @param {(!Level|string|number)} level The entry level. * @param {string} message The log message. * @param {number=} opt_timestamp The time this entry was generated, in * milliseconds since 0:00:00, January 1, 1970 UTC. If omitted, the * current time will be used. * @param {

(level, message, opt_timestamp, opt_type)

Source from the content-addressed store, hash-verified

218 * @param {string=} opt_type The log type, if known.
219 */
220 constructor(level, message, opt_timestamp, opt_type) {
221 this.level = level instanceof Level ? level : getLevel(level)
222 this.message = message
223 this.timestamp = typeof opt_timestamp === 'number' ? opt_timestamp : Date.now()
224 this.type = opt_type || ''
225 }
226
227 /**
228 * @return {{level: string, message: string, timestamp: number,

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
getLevelFunction · 0.70

Tested by

no test coverage detected