The original system log content to compare against.
The new system log content to find the difference from the old content.
Optional lineSeparator: string = '\n'The character(s) used to separate lines in the content (default is newline).
Optional lastLineIndex: number = -2The index of the last line to compare, negative index can be used (default is -2, the second-to-last line).
Generated using TypeDoc
Differs two system log contents and returns the new content after the last matching line.
This function compares two log contents,
oldContentandnewContent, and returns the portion of thenewContentthat appears after the last matching line in theoldContent. It splits the content based on the providedlineSeparatorand uses thelastLineIndexto find the line to compare.Returns
The portion of
newContentafter the last matching line inoldContent. If no match is found, returns the entirenewContent.