goog.debug.FancyWindow
Classgoog.debug.FancyWindow
> goog.debug.DebugWindow
goog.debug.FancyWindow(opt_identifier, opt_prefix)
Provides a Fancy extension to the DebugWindow class. Allows filtering based on loggers and levels.
opt_identifier
{string
=}
opt_prefix
{string
=}
.HAS_LOCAL_STORE
{boolean
}Constant indicating if we are able to use localStorage to persist filters
.LOCAL_STORE_PREFIX
{string
}Constant defining the prefix to use when storing log levels
.addFilter(loggerName)
Inherited from goog.debug.DebugWindow
.
Adds a logger name to be filtered.
loggerName
{string
}
.addLogRecord(logRecord)
Inherited from goog.debug.DebugWindow
.
Adds a log record.
logRecord
{goog.debug.LogRecord
}
.addSeparator()
Inherited from goog.debug.DebugWindow
.
Adds a separator to the debug window.
.clear_()
[protected]Inherited from goog.debug.DebugWindow
.
Clears the contents of the debug window
.getFormatter()
Inherited from goog.debug.DebugWindow
.
Gets the formatter for outputting to the debug window. The default formatter is an instance of goog.debug.HtmlFormatter
goog.debug.Formatter
}
.getStyleRules()
string
}
.hasActiveWindow()
Inherited from goog.debug.DebugWindow
.
boolean
}
.init()
Inherited from goog.debug.DebugWindow
.
Initializes the debug window.
.isCapturing()
Inherited from goog.debug.DebugWindow
.
Whether we are currently capturing logger output.
boolean
}
.isEnabled()
Inherited from goog.debug.DebugWindow
.
Whether the DebugWindow is enabled. When the DebugWindow is enabled, it tries to keep its window open and logs all messages to the window. When the DebugWindow is disabled, it stops logging messages to its window.
boolean
}
.lastCall_
[protected] {number
}Inherited from goog.debug.DebugWindow
.
Timestamp for the last time the log was written to.
.removeFilter(loggerName)
Inherited from goog.debug.DebugWindow
.
Removes a logger name to be filtered.
loggerName
{string
}
.resetBufferWithNewSize(size)
Inherited from goog.debug.DebugWindow
.
Modify the size of the circular buffer. Allows the log to retain more information while the window is closed.
size
{number
}
.setCapturing(capturing)
Inherited from goog.debug.DebugWindow
.
Sets whether we are currently capturing logger output.
capturing
{boolean
}
.setEnabled(enable)
Inherited from goog.debug.DebugWindow
.
Sets whether the DebugWindow is enabled. When the DebugWindow is enabled, it tries to keep its window open and log all messages to the window. When the DebugWindow is disabled, it stops logging messages to its window. The DebugWindow also saves this state to a cookie so that it's persisted across application refreshes.
enable
{boolean
}
.setForceEnableOnSevere(enableOnSevere)
Inherited from goog.debug.DebugWindow
.
Sets whether the debug window should be force enabled when a severe log is encountered.
enableOnSevere
{boolean
}
.setFormatter(formatter)
Inherited from goog.debug.DebugWindow
.
Sets the formatter for outputting to the debug window.
formatter
{goog.debug.Formatter
}
.setWelcomeMessage(msg)
Inherited from goog.debug.DebugWindow
.
Sets the welcome message shown when the window is first opened or reset.
msg
{string
}
.welcomeMessage
[protected] {string
}Inherited from goog.debug.DebugWindow
.
HTML string printed when the debug window opens
.win_
[protected] {Window
}Inherited from goog.debug.DebugWindow
.
Reference to debug window
.writeBufferToLog()
[protected]Write to the log and maybe scroll into view.
.writeInitialDocument()
[protected]Writes the initial HTML of the debug window.
.writeSavedMessages_()
[protected]Inherited from goog.debug.DebugWindow
.
Writes all saved messages to the DebugWindow.