The goog.net.BrowserChannel.LogSaver Namespace

goog.net.BrowserChannel.LogSaver

A LogSaver that can be used to accumulate all the debug logs for BrowserChannels so they can be sent to the server when a problem is detected.

.addLogRecord(logRecord)

Adds a log record.

logRecord {goog.debug.LogRecord}
the LogRecord.

.clearBuffer()

Clears the buffer

.getBuffer()

Returns the log as a single string.

returns {string}
The log as a single string.

.isEnabled()

Returns whether the LogSaver is enabled.

returns {boolean}
Whether saving is enabled or disabled.

.setEnabled(enable)

Enables of disables the LogSaver.

enable {boolean}
Whether to enable or disable saving.