<!DOCTYPE html><meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.debug.LogManager</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Namespace goog.debug.LogManager</h1><a class="source" href="source/lib/goog/debug/logger.js.src.html#l775">code »</a></header><section><p>There is a single global LogManager object that is used to maintain a set of shared state about Loggers and log services. This is loosely based on the java class java.util.logging.LogManager.</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="static-functions"><h2>Global Functions</h2><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l853">code »</a><span class="member"><a name="goog.debug.LogManager.createFunctionForCatchErrors">goog.debug.LogManager.createFunctionForCatchErrors</a> <span class="args">( opt_logger )</span> ⇒ <code class="type">function(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>)</code></span></div><p>Creates a function that can be passed to goog.debug.catchErrors. The function will log all reported errors using the given logger.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>opt_logger: <code class="type"><a href="class_goog_debug_Logger.html">goog.debug.Logger</a>=</code><dd>The logger to log the errors to. Defaults to the root logger.</dl><tr><th>Returns<tr><td><dl>The created function.</dl></table></div></details></div></div><div class="wrap-details private"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l869">code »</a><span class="member"><a name="goog.debug.LogManager.createLogger_">goog.debug.LogManager.createLogger_</a> <span class="args">( name )</span> ⇒ <code class="type">!<a href="class_goog_debug_Logger.html">goog.debug.Logger</a></code></span></div><p>Creates the named logger. Will also create the parents of the named logger if they don't yet exist.</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 logger.</dl><tr><th>Returns<tr><td><dl>The named logger.</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#l839">code »</a><span class="member"><a name="goog.debug.LogManager.getLogger">goog.debug.LogManager.getLogger</a> <span class="args">( name )</span> ⇒ <code class="type">!<a href="class_goog_debug_Logger.html">goog.debug.Logger</a></code></span></div><p>Finds a named logger.</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>A name for the logger. This should be a dot-separated name and should normally be based on the package name or class name of the subsystem, such as goog.net.BrowserChannel.</dl><tr><th>Returns<tr><td><dl>The named logger.</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#l814">code »</a><span class="member"><a name="goog.debug.LogManager.getLoggers">goog.debug.LogManager.getLoggers</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>.<<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>></code></span></div><p>Returns all the loggers.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>Map of logger names to logger objects.</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#l825">code »</a><span class="member"><a name="goog.debug.LogManager.getRoot">goog.debug.LogManager.getRoot</a> <span class="args">( )</span> ⇒ <code class="type">!<a href="class_goog_debug_Logger.html">goog.debug.Logger</a></code></span></div><p>Returns the root of the logger tree namespace, the logger with the empty string as its name.</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>The root logger.</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#l798">code »</a><span class="member"><a name="goog.debug.LogManager.initialize">goog.debug.LogManager.initialize</a> <span class="args">( )</span></span></div><p>Initializes the LogManager if not already initialized.</summary></details></div></div></section><section id="static-properties"><h2>Global Properties</h2><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/logger.js.src.html#l784">code »</a><span class="member"><a name="goog.debug.LogManager.loggers_">goog.debug.LogManager.loggers_</a> : <code class="type">!<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>.<<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>></code></span></div><p>Map of logger names to logger objects.</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#l792">code »</a><span class="member"><a name="goog.debug.LogManager.rootLogger_">goog.debug.LogManager.rootLogger_</a> : <code class="type"><a href="class_goog_debug_Logger.html">goog.debug.Logger</a></code></span></div><p>The root logger which is the root of the logger tree.</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>