@salesforce/b2c-tooling-sdk / operations/logs / aggregateLogEntries
Function: aggregateLogEntries()
aggregateLogEntries(
lines,pendingLines):object
Defined in: packages/b2c-tooling-sdk/src/operations/logs/tail.ts:138
Aggregates lines into multi-line log entries.
B2C log entries can span multiple lines. A new entry starts when a line begins with a timestamp pattern: [YYYY-MM-DD HH:MM:SS.mmm GMT]
Parameters
lines
string[]
Array of individual lines
pendingLines
string[] = []
Lines carried over from previous chunk (incomplete entry)
Returns
object
Object with complete entries and any pending lines for next chunk
entries
entries:
string[][]
pending
pending:
string[]