Assume I have an input file like the following:
2015-07-28 12:00:01 Executing function a...
2015-07-28 12:00:02 debug1
2015-07-28 12:00:03 debug2
2015-07-28 12:00:04 Completing function a (value=-1)
2015-07-28 12:00:05 Executing function a...
2015-07-28 12:00:06 debug3
2015-07-28 12:00:07 debug4
2015-07-28 12:00:08 Completing function a (value=0)
I want to build a transaction object that begins with the first line and ends with the last. If I use startswith="Executing function a..." and endswith="Completing function a (value=0)" , it appears that the second Executing function a... evicts the first, even though an endswith has not occurred. I end up with a single transaction that begins at 12:00:05 and ends at 12:00:08, and the earlier is an incomplete transaction.
Is there any way to get transaction not to evict the previous transaction when it encounters another startswith (prior to an endswith )?
... View more