Parses the content of a system log into an array of SystemLogLine objects.
This function uses a regular expression to split the log content into individual log lines. It then parses
each log line into a structured SystemLogLine object. The function also filters out any empty lines
and ensures only valid SystemLogLine objects are returned.
Note: The regular expression uses the s flag, which may not be supported in all browsers. This is suppressed
with @ts-ignore to allow the use of dot-all mode in the regex.
Returns
An array of SystemLogLine objects parsed from the log content.
Parses the content of a system log into an array of
SystemLogLine
objects.This function uses a regular expression to split the log content into individual log lines. It then parses each log line into a structured
SystemLogLine
object. The function also filters out any empty lines and ensures only validSystemLogLine
objects are returned.Note: The regular expression uses the
s
flag, which may not be supported in all browsers. This is suppressed with@ts-ignore
to allow the use of dot-all mode in the regex.Returns
An array of
SystemLogLine
objects parsed from the log content.