selenium-webdriver
Version:
The official WebDriver JavaScript bindings from the Selenium project
2 lines • 7.97 kB
HTML
<meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.debug.LogBuffer</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.LogBuffer</h1><a class="source" href="source/lib/goog/debug/logbuffer.js.src.html#l37">code »</a></header><section><p>Creates the log buffer.<h2>Constructor</h2><div class="ctor wrap-details public"><div><div class="ctor"><span class="member">goog.debug.LogBuffer <span class="args">( )</span></span></div></div></div></section><section><h2>Classes</h2><div class="type-summary"><table><tbody><tr><td><dl><dt><a href="class_goog_debug_LogBuffer.html">goog.debug.LogBuffer.instance_</a><dd>Creates the log buffer.</dl></table></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/logbuffer.js.src.html#l98">code »</a><span class="member"><a name="addRecord">addRecord</a> <span class="args">( level, msg, loggerName )</span> ⇒ <code class="type">!<a href="class_goog_debug_LogRecord.html">goog.debug.LogRecord</a></code></span></div><p>Adds a log record to the buffer, possibly overwriting the oldest 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.</dl><tr><th>Returns<tr><td><dl>The log record.</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/logbuffer.js.src.html#l123">code »</a><span class="member"><a name="clear">clear</a> <span class="args">( )</span></span></div><p>Removes all buffered log records.</summary></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logbuffer.js.src.html#l135">code »</a><span class="member"><a name="forEachRecord">forEachRecord</a> <span class="args">( func )</span></span></div><p>Calls the given function for each buffered log record, starting with the
oldest one.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>func: <code class="type">function(!<a href="class_goog_debug_LogRecord.html">goog.debug.LogRecord</a>)</code><dd>The function to call.</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/logbuffer.js.src.html#l72">code »</a><span class="member"><a name="buffer_">buffer_</a> : <code class="type">!<a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></code></span></div><p>The array to store the records.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logbuffer.js.src.html#l80">code »</a><span class="member"><a name="curIndex_">curIndex_</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>The index of the most recently added record or -1 if there are no records.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logbuffer.js.src.html#l88">code »</a><span class="member"><a name="isFull_">isFull_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether the buffer is at capacity.</summary></details></div></div></section><section id="static-functions"><h2>Static Functions</h2><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logbuffer.js.src.html#l49">code »</a><span class="member"><a name="goog.debug.LogBuffer.getInstance">goog.debug.LogBuffer.getInstance</a> <span class="args">( )</span> ⇒ <code class="type">!<a href="class_goog_debug_LogBuffer.html">goog.debug.LogBuffer</a></code></span></div><p>A static method that always returns the same instance of LogBuffer.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>The LogBuffer singleton instance.</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/logbuffer.js.src.html#l115">code »</a><span class="member"><a name="goog.debug.LogBuffer.isBufferingEnabled">goog.debug.LogBuffer.isBufferingEnabled</a> <span class="args">( )</span> ⇒ <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div></summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>Whether the log buffer is enabled.</dl></table></div></details></div></div></section><section id="static-properties"><h2>Static Properties</h2><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logbuffer.js.src.html#l54">code »</a><span class="member"><a name="goog.debug.LogBuffer.goog.debug.LogBuffer.instance_">goog.debug.LogBuffer.goog.debug.LogBuffer.instance_</a> : <code class="type"><a href="class_goog_debug_LogBuffer.html">goog.debug.LogBuffer</a></code></span></div><p>Creates the log buffer.</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/logbuffer.js.src.html#l64">code »</a><span class="member"><a name="goog.debug.LogBuffer.CAPACITY">goog.debug.LogBuffer.CAPACITY</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</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>