Clients should normally use the predefined Level constants such as Level.SEVERE.
The levels in descending order are:
![]()
Creates a function that can be passed to goog.debug.catchErrors. The function
will log all reported errors using the given logger.
Arguments:
Returns: function(Object)
The created function.
|
code » | ||
Creates the named logger. Will also create the parents of the named logger
if they don't yet exist.
Arguments:
Returns: !goog.debug.Logger
The named logger.
|
code » | ||
![]()
Creates the predefined levels cache and populates it.
|
code » | ||
use goog.log instead. http://go/goog-debug-logger-deprecated
Finds or creates a logger for a named subsystem. If a logger has already been
created with the given name it is returned. Otherwise a new logger is
created. If a new logger is created its log level will be configured based
on the LogManager configuration and it will configured to also send logging
output to its parent's handlers. It will be registered in the LogManager
global namespace.
Arguments:
Returns: !goog.debug.Logger
The named logger.
|
code » | ||
Finds a named logger.
Arguments:
Returns: !goog.debug.Logger
The named logger.
|
code » | ||
Returns all the loggers.
|
code » | ||
Gets the predefined level with the given name.
Arguments:
Returns: goog.debug.Logger.Level
The level, or null if none found.
|
code » | ||
Gets the highest predefined level <= #value.
Arguments:
Returns: goog.debug.Logger.Level
The level, or null if none found.
|
code » | ||
Returns the root of the logger tree namespace, the logger with the empty
string as its name.
Returns: !goog.debug.Logger
The root logger.
|
code » | ||
![]()
Initializes the LogManager if not already initialized.
|
code » | ||
![]()
Logs a message to profiling tools, if available.
Arguments:
|
code » |