goog.debug.LogBuffer
Classgoog.debug.LogBuffer()
Creates the log buffer.
.CAPACITY
.addRecord(level, msg, loggerName)
Adds a log record to the buffer, possibly overwriting the oldest record.
level
{goog.debug.Logger.Level
}
msg
{string
}
loggerName
{string
}
goog.debug.LogRecord
}
.clear()
Removes all buffered log records.
.forEachRecord(func)
Calls the given function for each buffered log record, starting with the oldest one.
func
{function
(!goog.debug.LogRecord
)}
.getInstance()
A static method that always returns the same instance of LogBuffer.
goog.debug.LogBuffer
}
.isBufferingEnabled()
boolean
}