selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
12 lines • 16.9 kB
HTML
<meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.debug.LogRecord</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Class goog.debug.LogRecord</h1><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l38">code »</a></header><section><p>LogRecord objects are used to pass logging requests between
the logging framework and individual log Handlers.<h2>Constructor</h2><div class="ctor wrap-details public"><div><div class="ctor"><span class="member">goog.debug.LogRecord <span class="args">( level, msg, loggerName, opt_time, opt_sequenceNumber )</span></span></div><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>level: <code class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code><dd>One of the level identifiers.<dt>msg: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>The string message.<dt>loggerName: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>The name of the source logger.<dt>opt_time: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>=</code><dd>Time this log record was created if other than now.
If 0, we use #goog.now.<dt>opt_sequenceNumber: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>=</code><dd>Sequence number of this log record. This
should only be passed in when restoring a log record from persistence.</dl></table></div></div></div></section><div id="visibility-controls"><b>Show:</b><label for="show-public"><span><input type="checkbox" id="show-public" checked/></span>Public</label><label for="show-protected"><span><input type="checkbox" id="show-protected"/></span>Protected</label><label for="show-private"><span><input type="checkbox" id="show-private"/></span>Private</label></div><section id="instance-methods"><h2>Instance Methods</h2><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l157">code »</a><span class="member"><a name="getException">getException</a> <span class="args">( )</span> ⇒ <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code></span></div><p>Get the exception that is part of the log record.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>the exception.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l177">code »</a><span class="member"><a name="getExceptionText">getExceptionText</a> <span class="args">( )</span> ⇒ <code class="type">?<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div><p>Get the exception text that is part of the log record.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>Exception text.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l206">code »</a><span class="member"><a name="getLevel">getLevel</a> <span class="args">( )</span> ⇒ <code class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>Get the logging message level, for example Level.SEVERE.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>the logging message level.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l147">code »</a><span class="member"><a name="getLoggerName">getLoggerName</a> <span class="args">( )</span> ⇒ <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div><p>Get the source Logger's name.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>source logger name (may be null).</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l225">code »</a><span class="member"><a name="getMessage">getMessage</a> <span class="args">( )</span> ⇒ <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div><p>Get the "raw" log message, before localization or formatting.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>the raw message string.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l245">code »</a><span class="member"><a name="getMillis">getMillis</a> <span class="args">( )</span> ⇒ <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code></span></div><p>Get event time in milliseconds since 1970.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>event time in millis since 1970.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l268">code »</a><span class="member"><a name="getSequenceNumber">getSequenceNumber</a> <span class="args">( )</span> ⇒ <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code></span></div><p>Get the sequence number.
<p>
Sequence numbers are normally assigned in the LogRecord
constructor, which assigns unique sequence numbers to
each new LogRecord in increasing order.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>the sequence number.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l126">code »</a><span class="member"><a name="reset">reset</a> <span class="args">( level, msg, loggerName, opt_time, opt_sequenceNumber )</span></span></div><p>Sets all fields of the log record.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>level: <code class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code><dd>One of the level identifiers.<dt>msg: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>The string message.<dt>loggerName: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>The name of the source logger.<dt>opt_time: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>=</code><dd>Time this log record was created if other than now.
If 0, we use #goog.now.<dt>opt_sequenceNumber: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>=</code><dd>Sequence number of this log record. This
should only be passed in when restoring a log record from persistence.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l167">code »</a><span class="member"><a name="setException">setException</a> <span class="args">( exception )</span></span></div><p>Set the exception that is part of the log record.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>exception: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code><dd>the exception.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l187">code »</a><span class="member"><a name="setExceptionText">setExceptionText</a> <span class="args">( text )</span></span></div><p>Set the exception text that is part of the log record.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>text: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>The exception text.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l215">code »</a><span class="member"><a name="setLevel">setLevel</a> <span class="args">( level )</span></span></div><p>Set the logging message level, for example Level.SEVERE.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>level: <code class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code><dd>the logging message level.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l197">code »</a><span class="member"><a name="setLoggerName">setLoggerName</a> <span class="args">( loggerName )</span></span></div><p>Get the source Logger's name.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>loggerName: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>source logger name (may be null).</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l235">code »</a><span class="member"><a name="setMessage">setMessage</a> <span class="args">( msg )</span></span></div><p>Set the "raw" log message, before localization or formatting.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>msg: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code><dd>the raw message string.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l255">code »</a><span class="member"><a name="setMillis">setMillis</a> <span class="args">( time )</span></span></div><p>Set event time in milliseconds since 1970.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>time: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code><dd>event time in millis since 1970.</dl></table></div></details></div></div></section><section id="instance-properties"><h2>Instance Properties</h2><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l98">code »</a><span class="member"><a name="exceptionText_">exceptionText_</a> : <code class="type">?<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div><p>Exception text associated with the record</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l90">code »</a><span class="member"><a name="exception_">exception_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code></span></div><p>Exception associated with the record</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l57">code »</a><span class="member"><a name="level_">level_</a> : <code class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>Level of the LogRecord</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l73">code »</a><span class="member"><a name="loggerName_">loggerName_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div><p>Name of the logger that created the record.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l65">code »</a><span class="member"><a name="msg_">msg_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div><p>Message associated with the record</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l82">code »</a><span class="member"><a name="sequenceNumber_">sequenceNumber_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code></span></div><p>Sequence number for the LogRecord. Each record has a unique sequence number
that is greater than all log records created before it.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l49">code »</a><span class="member"><a name="time_">time_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code></span></div><p>Time the LogRecord was created.</summary></details></div></div></section><section id="static-properties"><h2>Static Properties</h2><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l113">code »</a><span class="member"><a name="goog.debug.LogRecord.nextSequenceNumber_">goog.debug.LogRecord.nextSequenceNumber_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code></span></div><p>A sequence counter for assigning increasing sequence numbers to LogRecord
objects.</summary></details></div></div></section><section id="compiler-constants"><h2>Compiler Constants</h2><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logrecord.js.src.html#l104">code »</a><span class="member"><a name="goog.debug.LogRecord.ENABLE_SEQUENCE_NUMBERS">goog.debug.LogRecord.ENABLE_SEQUENCE_NUMBERS</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div></summary></details></div></div></section></main><nav id="topnav"><div><div id="menubutton"><label for="sidenav-toggle">Menu</label></div><form id="searchbox"><div><input type="search" placeholder="Search" tabindex="1"></div></form></div></nav><nav id="sidenav"><input type="checkbox" id="sidenav-types-ctrl" /><input type="checkbox" id="sidenav-files-ctrl" /><input type="checkbox" id="sidenav-modules-ctrl" /><a id="sidenav-overview"><div><h4>Overview</h4></div></a><div id="sidenav-types"><label for="sidenav-types-ctrl"><h4>Types</h4></label><i>Loading</i></div><div id="sidenav-modules"><label for="sidenav-modules-ctrl"><h4>Modules</h4></label><i>Loading</i></div><div id="sidenav-files"><label for="sidenav-files-ctrl"><h4>Files</h4></label><i>Loading</i></div><a href="license.html"><div><h4>License</h4></div></a></nav><div id="push-footer"></div></div><footer><a href="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><script src="types.js"></script><script src="dossier.js"></script>