goog.debug.Logger |
name
: string
The name of the Logger.
|
![]()
Adds a child to this logger. This is used for setting up the logger tree.
Arguments:
|
code » | |||||
![]()
Adds a handler to the logger. This doesn't use the event system because
we want to be able to add logging to the event system.
Arguments:
|
code » | |||||
![]()
Calls the handlers for publish.
Arguments:
|
code » | |||||
![]()
Logs a message at the Logger.Level.CONFIG level.
If the logger is currently enabled for the given message level then the
given message is forwarded to all the registered output Handler objects.
Arguments:
|
code » | |||||
![]()
Logs a LogRecord.
Arguments:
|
code » | |||||
![]()
Logs a message at the Logger.Level.FINE level.
If the logger is currently enabled for the given message level then the
given message is forwarded to all the registered output Handler objects.
Arguments:
|
code » | |||||
![]()
Logs a message at the Logger.Level.FINER level.
If the logger is currently enabled for the given message level then the
given message is forwarded to all the registered output Handler objects.
Arguments:
|
code » | |||||
![]()
Logs a message at the Logger.Level.FINEST level.
If the logger is currently enabled for the given message level then the
given message is forwarded to all the registered output Handler objects.
Arguments:
|
code » | |||||
Returns the children of this logger as a map of the child name to the logger.
Returns: !Object
The map where the keys are the child leaf names and the
values are the Logger objects.
|
code » | |||||
Returns the effective level of the logger based on its ancestors' levels.
Returns: goog.debug.Logger.Level
The level.
|
code » | |||||
Gets the log level specifying which message levels will be logged by this
logger. Message levels lower than this value will be discarded.
The level value Level.OFF can be used to turn off logging. If the level
is null, it means that this node should inherit its level from its nearest
ancestor with a specific (non-null) level value.
Returns: goog.debug.Logger.Level
The level.
|
code » | |||||
Creates a new log record and adds the exception (if present) to it.
Arguments:
Returns: !goog.debug.LogRecord
A log record.
|
code » | |||||
Gets the name of this logger.
Returns: string
The name of this logger.
|
code » | |||||
Returns the parent of this logger.
Returns: goog.debug.Logger
The parent logger or null if this is the root.
|
code » | |||||
![]()
Logs a message at the Logger.Level.INFO level.
If the logger is currently enabled for the given message level then the
given message is forwarded to all the registered output Handler objects.
Arguments:
|
code » | |||||
Checks if a message of the given level would actually be logged by this
logger. This check is based on the Loggers effective level, which may be
inherited from its parent.
Arguments:
Returns: boolean
Whether the message would be logged.
|
code » | |||||
![]()
Logs a message. If the logger is currently enabled for the
given message level then the given message is forwarded to all the
registered output Handler objects.
Arguments:
|
code » | |||||
![]()
Logs a LogRecord. If the logger is currently enabled for the
given message level then the given message is forwarded to all the
registered output Handler objects.
Arguments:
|
code » | |||||
Removes a handler from the logger. This doesn't use the event system because
we want to be able to add logging to the event system.
|
code » | |||||
![]()
Set the log level specifying which message levels will be logged by this
logger. Message levels lower than this value will be discarded.
The level value Level.OFF can be used to turn off logging. If the new level
is null, it means that this node should inherit its level from its nearest
ancestor with a specific (non-null) level value.
Arguments:
|
code » | |||||
![]()
Sets the parent of this logger. This is used for setting up the logger tree.
Arguments:
|
code » | |||||
![]()
Logs a message at the Logger.Level.SEVERE level.
If the logger is currently enabled for the given message level then the
given message is forwarded to all the registered output Handler objects.
Arguments:
|
code » | |||||
![]()
Logs a message at the Logger.Level.SHOUT level.
If the logger is currently enabled for the given message level then the
given message is forwarded to all the registered output Handler objects.
Arguments:
|
code » | |||||
![]()
Logs a message at the Logger.Level.WARNING level.
If the logger is currently enabled for the given message level then the
given message is forwarded to all the registered output Handler objects.
Arguments:
|
code » |
![]()
Map of children loggers. The keys are the leaf names of the children and
the values are the child loggers.
|
Code » | |
![]()
Handlers that are listening to this logger.
|
Code » | |
Level that this logger only filters above. Null indicates it should
inherit from the parent.
|
Code » | |
![]()
Name of the Logger. Generally a dot-separated namespace
|
Code » | |
Parent Logger.
|
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 » | ||
![]()
Logs a message to profiling tools, if available.
Arguments:
|
code » |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
No description.
|
Code » |