UNPKG

selenium-webdriver

Version:

The official WebDriver JavaScript bindings from the Selenium project

32 lines 12.7 kB
<!DOCTYPE html><meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.debug.Logger.Level</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.Logger.Level</h1><a class="source" href="source/lib/goog/debug/logger.js.src.html#l157">code &raquo;</a></header><section><p>The Level class defines a set of standard logging levels that can be used to control logging output. The logging Level objects are ordered and are specified by ordered integers. Enabling logging at a given level also enables logging at all higher levels. <p> Clients should normally use the predefined Level constants such as Level.SEVERE. <p> The levels in descending order are: <ul> <li>SEVERE (highest value) <li>WARNING <li>INFO <li>CONFIG <li>FINE <li>FINER <li>FINEST (lowest value) </ul> In addition there is a level OFF that can be used to turn off logging, and a level ALL that can be used to enable logging of all messages.<h2>Constructor</h2><div class="ctor wrap-details public"><div><div class="ctor"><span class="member">goog.debug.Logger.Level <span class="args">( name, value )</span></span></div><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>name: <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 level.<dt>value: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code><dd>The numeric value of the level.</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/logger.js.src.html#l176">code &raquo;</a><span class="member"><a name="toString">toString</a> <span class="args">( )</span> &rArr; <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a></code></span></div></summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>String representation of the logger level.</dl></table></div></details></div></div></section><section id="instance-properties"><h2>Instance Properties</h2><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l162">code &raquo;</a><span class="member"><a name="name">name</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>The name of the level</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l168">code &raquo;</a><span class="member"><a name="value">value</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 numeric value of the level</summary></details></div></div></section><section id="static-functions"><h2>Static Functions</h2><div class="wrap-details private"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l293">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.createPredefinedLevelsCache_">goog.debug.Logger.Level.createPredefinedLevelsCache_</a> <span class="args">( )</span></span></div><p>Creates the predefined levels cache and populates it.</summary></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l308">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.getPredefinedLevel">goog.debug.Logger.Level.getPredefinedLevel</a> <span class="args">( name )</span> &rArr; <code class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>Gets the predefined level with the given name.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>name: <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 level.</dl><tr><th>Returns<tr><td><dl>The level, or null if none found.</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/logger.js.src.html#l322">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.getPredefinedLevelByValue">goog.debug.Logger.Level.getPredefinedLevelByValue</a> <span class="args">( value )</span> &rArr; <code class="type"><a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>Gets the highest predefined level <= #value.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>value: <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code><dd>Level value.</dl><tr><th>Returns<tr><td><dl>The level, or null if none found.</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/logger.js.src.html#l259">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.ALL">goog.debug.Logger.Level.ALL</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>ALL indicates that all messages should be logged. This level is initialized to <CODE>0</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l227">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.CONFIG">goog.debug.Logger.Level.CONFIG</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>CONFIG is a message level for static configuration messages. This level is initialized to <CODE>700</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l235">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.FINE">goog.debug.Logger.Level.FINE</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>FINE is a message level providing tracing information. This level is initialized to <CODE>500</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l243">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.FINER">goog.debug.Logger.Level.FINER</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>FINER indicates a fairly detailed tracing message. This level is initialized to <CODE>400</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l251">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.FINEST">goog.debug.Logger.Level.FINEST</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>FINEST indicates a highly detailed tracing message. This level is initialized to <CODE>300</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l219">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.INFO">goog.debug.Logger.Level.INFO</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>INFO is a message level for informational messages. This level is initialized to <CODE>800</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l186">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.OFF">goog.debug.Logger.Level.OFF</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>OFF is a special level that can be used to turn off logging. This level is initialized to <CODE>Infinity</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l267">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.PREDEFINED_LEVELS">goog.debug.Logger.Level.PREDEFINED_LEVELS</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 predefined levels.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l203">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.SEVERE">goog.debug.Logger.Level.SEVERE</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>SEVERE is a message level indicating a serious failure. This level is initialized to <CODE>1000</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l195">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.SHOUT">goog.debug.Logger.Level.SHOUT</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>SHOUT is a message level for extra debugging loudness. This level is initialized to <CODE>1200</CODE>.</summary></details></div></div><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l211">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.WARNING">goog.debug.Logger.Level.WARNING</a> : <code class="type">!<a href="class_goog_debug_Logger_Level.html">goog.debug.Logger.Level</a></code></span></div><p>WARNING is a message level indicating a potential problem. This level is initialized to <CODE>900</CODE>.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l286">code &raquo;</a><span class="member"><a name="goog.debug.Logger.Level.predefinedLevelsCache_">goog.debug.Logger.Level.predefinedLevelsCache_</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>A lookup map used to find the level object based on the name or value of the level object.</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>