new Log(entriesopt)
Serializable wrapper for a list of module:brig/log/LogEntrys.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
entries | Array.<module:brig/log~LogEntry> | <optional> | Initialize with log entries. |
- Source
Methods
append(logEntry) → {module:brig/log~Log}
Appends the entry to the log.
Parameters:
Name | Type | Description |
---|---|---|
logEntry | module:brig/log~LogEntry | Entry to append. |
- Source
Returns:
- Type:
- module:brig/log~Log
getEntriesAfterIndex(index) → {Array.<module:brig/log~LogEntry>}
Get all the log entries after the supplied index.
Parameters:
Name | Type | Description |
---|---|---|
index | number | Starting log prefix. |
- Source
Returns:
- Type:
- Array.<module:brig/log~LogEntry>
getEntryByIndex(index) → {module:brig/log~LogEntry}
Get the log entry at the supplied index.
Parameters:
Name | Type | Description |
---|---|---|
index | number | Entry index. |
- Source
Returns:
- Type:
- module:brig/log~LogEntry