Added local buffering of log messages in the even that there are errors writing to the kinesis stream.