Class goog.debug.LogBuffer

code »

Creates the log buffer.

Constructor

goog.debug.LogBuffer ( )

Classes

goog.debug.LogBuffer.instance_
Creates the log buffer.
Show:

Instance Methods

code »addRecord ( level, msg, loggerName )!goog.debug.LogRecord

Adds a log record to the buffer, possibly overwriting the oldest record.

Parameters
level: goog.debug.Logger.Level
One of the level identifiers.
msg: string
The string message.
loggerName: string
The name of the source logger.
Returns
The log record.

Removes all buffered log records.

Calls the given function for each buffered log record, starting with the oldest one.

Parameters
func: function(!goog.debug.LogRecord)
The function to call.

Instance Properties

The array to store the records.

The index of the most recently added record or -1 if there are no records.

Whether the buffer is at capacity.

Static Functions

A static method that always returns the same instance of LogBuffer.

Returns
The LogBuffer singleton instance.
Returns
Whether the log buffer is enabled.

Static Properties

Compiler Constants