Parse a list of raw log lines into structured records. Each valid line is LEVEL|timestamp|message (pipe-delimited, exactly three fields). Return a list of dicts {"level", "ts", "message"}, in input order.
Rules: - Trim surrounding whitespace from every field. - level must be one of INFO, WARN, ERROR — skip the line otherwise. - Skip any line that doesn't have exactly three fields. - Don't crash on a malformed line; just drop it.
What the tests check
6 on Run · 7 on Submit01empty input returns empty
02parses a well-formed line
03trims surrounding whitespace
04skips wrong field count
05skips a line with more than three fields
06skips unknown level
Submit runs these and one more check you don’t see, so code written for the visible tests alone can still miss.