awslabs / kinesis-agent-windows

An extensible Windows agent that ingests logs and metrics to AWS services such as Kinesis Stream, Kinesis Firehose, CloudWatch Logs and CloudWatch.
Apache License 2.0
39 stars 22 forks source link

Make SingleLineJsonParser read log lines with line feed and handle JSON parser exception #11

Closed dhhoang closed 4 years ago

dhhoang commented 4 years ago

Description

This PR fixes several issues regarding SingleLineJsonParser:

Testing

Added 2 new sets of tests: FileLineReaderTest to test the behavior of FileLineReader, and SingleLineJsonParserTest to test the behavior of SingleLineJsonParser using the new ReadLine functionality.