You are here: Foswiki>Tasks Web>Item12360 (18 Jan 2019, MichaelDaum)Edit Attach

Item12360: LogDispatchContrib needs better compatibility with older loggers

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: LogDispatchContrib
Branches: trunk
Reported By: GeorgeClark
Waiting For:
Last Change By: MichaelDaum
  • 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
Topic revision: r6 - 18 Jan 2019, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy