At my job we typically will create different type of log files for test systems and they vary from system to system depending on many factors, but are generally not too complex (Basic example below).
I’m looking for some simple-ish way to make the logs easier to read by changing the line color if the line contains a specific string. In the example below i’d like to look for important tags ([Message]/[Server]) and assign different line colors.
I’m okay with using any plugins to accomplish this task. I’ve looked at using a custom syntax, but I couldn’t seem to find a way to do the simple task I needed without sinking massive amounts of time to understand the whole syntax system.
[29/03/2024 13:14:06][Server]: Message from the server
[29/03/2024 13:14:07][Instruction]: Operator Instruction
[29/03/2024 13:14:08][Server]: Message from the server
[29/03/2024 13:14:09][Message]: Message from the tested device
[29/03/2024 13:14:11][Message]: Message from the tested device
[29/03/2024 13:14:13][Message]: Message from the tested device
[29/03/2024 13:14:13][Server]: Message from the server
[29/03/2024 13:14:30][Instruction]: Operator Instruction
[29/03/2024 13:14:30][Server]: Message from the server
[29/03/2024 13:14:30][Server]: Message from the server
[29/03/2024 13:14:40][Instruction]: Operator Instruction
[29/03/2024 13:14:40][Server]: Message from the server
[29/03/2024 13:14:40][Server]: Message from the server
[29/03/2024 13:14:46][Instruction]: Operator Instruction
[29/03/2024 13:14:46][Server]: Message from the server
[29/03/2024 13:14:46][Message]: Message from the tested device
[29/03/2024 13:14:47][Server]: Message from the server
[29/03/2024 13:14:46][Message]: Message from the tested device
[29/03/2024 13:14:47][Server]: Message from the server
[29/03/2024 13:15:05][Success]: Reader connected