Group: Forum Members
Posts: 50,
Visits: 218
|
Hi Toby,
I am trying to write a custom parser for our log files since the default parser has some problems with special cases. I have a first version of the custom parser, however I have problems correctly parsing log entries with multiple Lines.
Simplified Example: 2020.01.01 Test 1 2020.01.02 Test 2.1 Test 2.2 Test 2.3 2020.01.03 Test 4
From what I understand from the documentation the IsLogEnty method should return true when I detect a new log entry. In the above example this would be detecting if the lines start with a date, and in this case return true, otherwise false.
In the Parse method then I parse the given logentry line and fill the LogEntry class.
When I run the custom parser it basically works, however in the log entry grid for the second entry I only see the line "Test 2.1" and not the lines "Test 2.2" and "Test 2.3". I can see them in the original entry view, but I would also like to see them in the log entry grid.
In contrast when I use the Pattern Parser then the log entry grid shows all three lines. How can I achieve this with the custom parser?
Regards Andreas
|