Item12360: LogDispatchContrib needs better compatibility with older loggers
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
- It encodes newlines on write. It should write the data as presented. The only encoding should be any delimiter used to build the record.
- The results are not completely compatible, the records have leading and trailing spaces.
- eachEventSince should merge multiple lines into a single record.
Add unit test for log records containing embedded newlines.
--
GeorgeClark - 20 Jan 2013
No... My initial fix won't work. It's not general enough. The field delimiter is configurable, so the code cannot assume the record ends with |.
It's going to have to encode newlines, and eachEventSince needs to decode them.
Also, the general delimiter handling in
LogDispatch::flattenLog works for the " | " default delimiter, but it will fall over for whitespace delimiters.
--
GeorgeClark - 20 Jan 2013