log

Classes

goog.log.Level
No description.
goog.log.LogRecord
No description.
goog.log.Logger
No description.

Public Protected Private

Global Functions

goog.log.addHandler(loggerhandler)
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:
logger : goog.log.Logger
No description.
handler : Function
Handler function to add.
code »
goog.log.error(loggermsgopt_exception)
Logs a message at the 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:
logger : goog.log.Logger
No description.
msg : goog.debug.Loggable
The message to log.
opt_exception : Error=
An exception associated with the message.
code »
goog.log.fine(loggermsgopt_exception)
Logs a message at the 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:
logger : goog.log.Logger
No description.
msg : goog.debug.Loggable
The message to log.
opt_exception : Error=
An exception associated with the message.
code »
goog.log.getLogger(nameopt_level) goog.log.Logger
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 goog.debug.LogManager configuration and it will configured to also send logging output to its parent's handlers.
Arguments:
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.
opt_level : goog.log.Level=
If provided, override the default logging level with the provided level.
Returns: goog.log.Logger  The named logger or null if logging is disabled.
code »
goog.log.info(loggermsgopt_exception)
Logs a message at the 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:
logger : goog.log.Logger
No description.
msg : goog.debug.Loggable
The message to log.
opt_exception : Error=
An exception associated with the message.
code »
goog.log.log(loggerlevelmsgopt_exception)
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:
logger : goog.log.Logger
No description.
level : goog.log.Level
One of the level identifiers.
msg : goog.debug.Loggable
The message to log.
opt_exception : Error | Object=
An exception associated with the message.
code »
goog.log.removeHandler(loggerhandler) boolean
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.
Arguments:
logger : goog.log.Logger
No description.
handler : Function
Handler function to remove.
Returns: boolean  Whether the handler was removed.
code »
goog.log.warning(loggermsgopt_exception)
Logs a message at the 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:
logger : goog.log.Logger
No description.
msg : goog.debug.Loggable
The message to log.
opt_exception : Error=
An exception associated with the message.
code »

Global Properties

goog.log.ENABLED :
No description.
Code »
goog.log.ROOT_LOGGER_NAME :
No description.
Code »

Package log

Package Reference