Namespace goog.debug.LogManager

code »

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.

Show:

Global Functions

Creates a function that can be passed to goog.debug.catchErrors. The function will log all reported errors using the given logger.

Parameters
opt_logger: goog.debug.Logger=
The logger to log the errors to. Defaults to the root logger.
Returns
The created function.

Creates the named logger. Will also create the parents of the named logger if they don't yet exist.

Parameters
name: string
The name of the logger.
Returns
The named logger.

Finds a named logger.

Parameters
name: string
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.
Returns
The named logger.

Returns all the loggers.

Returns
Map of logger names to logger objects.

Returns the root of the logger tree namespace, the logger with the empty string as its name.

Returns
The root logger.

Initializes the LogManager if not already initialized.

Global Properties

Map of logger names to logger objects.

The root logger which is the root of the logger tree.