goog.debug.HtmlFormatter
Provided By | |
---|---|
Extends | |
Alias for |
Formatter that returns formatted html. See formatRecord for the classes it uses for various types of formatted output.
new HtmlFormatter( opt_prefix )
Parameters |
|
---|
Instance Methods
this.formatRecord( logRecord ) → string
string
Formats a record
Overrides | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.formatRecordAsHtml( logRecord ) → goog.html.SafeHtml
goog.html.SafeHtml
Formats a record.
Overrides | |||||
---|---|---|---|---|---|
Parameters |
| ||||
Returns |
|
this.getStartTimeProvider() → (goog.debug.RelativeTimeProvider|null)
(goog.debug.RelativeTimeProvider|null)
Returns the start time provider. By default, this is the default instance but can be changed.
Defined by | |||
---|---|---|---|
Parameters | None. | ||
Returns |
|
this.resetRelativeTimeStart() → void
void
Resets the start relative time.
this.setStartTimeProvider( provider ) → void
void
Sets the start time provider. By default, this is the default instance but can be changed.
Defined by | |||||
---|---|---|---|---|---|
Parameters |
|
Instance Properties
this.appendNewline → boolean
boolean
Whether to append newlines to the end of formatted log records.
this.prefix_ → string
string
No information.
this.showAbsoluteTime → boolean
boolean
Whether to show absolute time in the DebugWindow.
this.showExceptionText → boolean
boolean
this.showLoggerName → boolean
boolean
Whether to show the logger name in the DebugWindow.
this.showRelativeTime → boolean
boolean
Whether to show relative time in the DebugWindow.
this.showSeverityLevel → boolean
boolean
Whether to show the severity level.
Static Functions
HtmlFormatter.exposeException( err, fn ) → string
string
Exposes an exception that has been caught by a try...catch and outputs the error as HTML with a stack trace.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|
HtmlFormatter.exposeExceptionAsHtml( err, fn ) → goog.html.SafeHtml
goog.html.SafeHtml
Exposes an exception that has been caught by a try...catch and outputs the error with a stack trace.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Returns |
|