The goog.debug.DivConsole Class

goog.debug.DivConsole(element)

A class for visualising logger calls in a div element.

element {Element}
The element to append to.

.addLogRecord(logRecord)

Adds a log record.

logRecord {goog.debug.LogRecord}
The log entry.

.addSeparator()

Adds a separator to the debug window.

.clear()

Clears the console.

.getFormatter()

Gets the formatter for outputting to the console. The default formatter is an instance of goog.debug.HtmlFormatter

returns {goog.debug.Formatter}
The formatter in use.

.installStyles()

Installs styles for the log messages and its div

.setCapturing(capturing)

Sets whether we are currently capturing logger output.

capturing {boolean}
Whether to capture logger output.

.setFormatter(formatter)

Sets the formatter for outputting to the console.

formatter {goog.debug.Formatter}
The formatter to use.