The goog.debug.Formatter Class

goog.debug.Formatter(opt_prefix)

Base class for Formatters. A Formatter is used to format a LogRecord into something that can be displayed to the user.

opt_prefix {string=}
The prefix to place before text records.

.formatRecord(logRecord)

Formats a record.

logRecord {goog.debug.LogRecord}
the logRecord to format.
returns {string}
The formatted string.

.getStartTimeProvider()

Returns the start time provider. By default, this is the default instance but can be changed.

returns {goog.debug.RelativeTimeProvider}
The start time provider.

.resetRelativeTimeStart()

Resets the start relative time.

.setStartTimeProvider(provider)

Sets the start time provider. By default, this is the default instance but can be changed.

provider {goog.debug.RelativeTimeProvider}
The provider to use.

.showAbsoluteTime {boolean}

Whether to show absolute time in the DebugWindow.

.showExceptionText {boolean}

Whether to show the logger exception text.

.showLoggerName {boolean}

Whether to show the logger name in the DebugWindow.

.showRelativeTime {boolean}

Whether to show relative time in the DebugWindow.

.showSeverityLevel {boolean}

Whether to show the severity level.