I have two lists that hold logging data (the lists hold strings).
An example list1 would look the following way (each entry is a string):
11:03:01:003 INFO some event has occurred
11:03:31:004 DEBUG another event has occurred
11:04:01:015 INFO third event has occurred
An example list2 would look the following way:
11:03:16:003 INFO fourth event has occurred
11:03:32:025 DEBUG fifth event has occurred
11:03:54:023 INFO sixth event has occurred
My goal is to have a list3 that will look the following way:
11:03:01:003 INFO some event has occurred
11:03:16:003 INFO fourth event has occurred
11:03:31:004 DEBUG another event has occurred
11:03:32:025 DEBUG fifth event has occurred
11:03:54:023 INFO sixth event has occurred
11:04:01:015 INFO third event has occurred
I have been thinking of an efficient way of solving this (as the log files can get quite heavy) but was not really able to figure it out.
Edit: The Lists come from ".txt" files and are split by a certain characteristic so I can end up with having to merge even more than two lists but the first step I had to do was generate those Lists which I was able to accomplish.