brig/log~ Log

new Log(entriesopt)

Serializable wrapper for a list of module:brig/log/LogEntrys.

Parameters:
NameTypeAttributesDescription
entriesArray.<module:brig/log~LogEntry><optional>

Initialize with log entries.

Methods

append(logEntry) → {module:brig/log~Log}

Appends the entry to the log.

Parameters:
NameTypeDescription
logEntrymodule:brig/log~LogEntry

Entry to append.

Returns:
Type: 
module:brig/log~Log

getEntriesAfterIndex(index) → {Array.<module:brig/log~LogEntry>}

Get all the log entries after the supplied index.

Parameters:
NameTypeDescription
indexnumber

Starting log prefix.

Returns:
Type: 
Array.<module:brig/log~LogEntry>

getEntryByIndex(index) → {module:brig/log~LogEntry}

Get the log entry at the supplied index.

Parameters:
NameTypeDescription
indexnumber

Entry index.