Vim Dojo challenge
You're given a messy logfile and your boss wants it cleaned up or you're fired!
Transform this into a clean, minimal log by removing all lines that:
Start with DEBUG or TRACE
Leave only INFO and ERROR lines
Also, Add a blank line between each remaining log entry
Start
INFO 2024-04-01 10:00:00 Starting process DEBUG pid=4837 user=admin ERROR 2024-04-01 10:00:02 failed to connect to database TRACE connection timeout after 5000ms DEBUG retrying connection... INFO 2024-04-01 10:00:05 Connection successful DEBUG pid=4837 user=admin
Goal
INFO 2024-04-01 10:00:00 Starting process ERROR 2024-04-01 10:00:02 failed to connect to database INFO 2024-04-01 10:00:05 Connection successful
Members only
You gotta sign in to take on challenges. New ones drop every week โ they're fun, and insightful.