so I've got a program that needs to monitor a serial port, which is having logs splurted at it.
I want to take that real-time output and save it in a format that gives me an idea of when each line came in, like turn:
"Turned on Motor #3"
into
"[2023-11-08 08:44:51] Turned on Motor #3"
This shouldn't be too hard to do with a script, but it also seems like the kind of thing that's probably been done already. Anybody know of a library/program to do this?