Parses a single line of system log into a structured SystemLogLine object.
This function uses a regular expression to extract key parts of a log line: the timestamp, uptime, ID,
file, log level, and message. If the line matches the expected format, it returns an object with these
extracted properties. If the line doesn't match the format, it returns undefined.
Note: The regular expression uses the s flag (dot-all mode), which may not be supported in all browsers.
This is suppressed with @ts-ignore.
Returns
A SystemLogLine object with the parsed data, or undefined if the line doesn't match the expected format.
Parses a single line of system log into a structured
SystemLogLine
object.This function uses a regular expression to extract key parts of a log line: the timestamp, uptime, ID, file, log level, and message. If the line matches the expected format, it returns an object with these extracted properties. If the line doesn't match the format, it returns
undefined
.Note: The regular expression uses the
s
flag (dot-all mode), which may not be supported in all browsers. This is suppressed with@ts-ignore
.Returns
A
SystemLogLine
object with the parsed data, orundefined
if the line doesn't match the expected format.