goog.debug.FancyWindow
Instance Methods
this.addFilter( loggerName ) → void
void
Adds a logger name to be filtered.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.addLogRecord( logRecord ) → void
void
Adds a log record.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.addSeparator() → void
void
Adds a separator to the debug window.
this.clear() → void
void
Clears the contents of the debug window
this.getFormatter() → (goog.debug.formatter.Formatter|null)
(goog.debug.formatter.Formatter|null)
Gets the formatter for outputting to the debug window. The default formatter is an instance of goog.debug.HtmlFormatter
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.getStyleRules() → goog.html.SafeStyleSheet
goog.html.SafeStyleSheet
Overrides | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.hasActiveWindow() → boolean
boolean
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.init() → void
void
Initializes the debug window.
this.isCapturing() → boolean
boolean
Whether we are currently capturing logger output.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.isEnabled() → boolean
boolean
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.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.removeFilter( loggerName ) → void
void
Removes a logger name to be filtered.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.resetBufferWithNewSize( size ) → void
void
Modify the size of the circular buffer. Allows the log to retain more information while the window is closed.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setCapturing( capturing ) → void
void
Sets whether we are currently capturing logger output.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setEnabled( enable ) → void
void
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.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setForceEnableOnSevere( enableOnSevere ) → void
void
Sets whether the debug window should be force enabled when a severe log is encountered.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setFormatter( formatter ) → void
void
Sets the formatter for outputting to the debug window.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.setWelcomeMessage( msg ) → void
void
Sets the welcome message shown when the window is first opened or reset.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
this.writeBufferToLog() → void
void
Write to the log and maybe scroll into view.
Overrides | |
---|---|
Parameters | None. |
this.writeInitialDocument() → void
void
Writes the initial HTML of the debug window.
Overrides | |
---|---|
Parameters | None. |
this.writeSavedMessages() → void
void
Writes all saved messages to the DebugWindow.
Instance Properties
this.identifier → string
string
Identifier for this logging class
this.lastCall → number
number
Timestamp for the last time the log was written to.
this.outputBuffer → Array<goog.html.SafeHtml>
Array<goog.html.SafeHtml>
Array used to buffer log output
this.welcomeMessage → string
string
HTML string printed when the debug window opens
this.win → (Window|null)
(Window|null)
Reference to debug window
Static Properties
FancyWindow.HAS_LOCAL_STORE → boolean
boolean
Constant indicating if we are able to use localStorage to persist filters
FancyWindow.LOCAL_STORE_PREFIX → string
string
Constant defining the prefix to use when storing log levels