Bugfix for log lines without or delayed newlines results in a file truncated detection and reading the file again

Changed the file reading from ReadLine() to ReadBytes('\n').
Now the file is not longer recognized as truncated (and start reading the file again from the beginning).
Details here: https://github.com/elasticsearch/logstash-forwarder/issues/149

The problem is that ReadLine() http://golang.org/pkg/bufio/#Reader.ReadLine returns also a incomplete line (without newline) but there is no indicator that the newline is missing.
Therefor I changed the reading to ReadBytes() http://golang.org/pkg/bufio/#Reader.ReadBytes

Hi,

This isn't merged yet. I believe @alphazero-es was testing a merge if this with one of my PR but not sure where he got.

I'm not working on my fork of the logstash-forwarder repo anymore. I moved everything to http://github.com/driskell/log-courier and started maintaining it as my own shipper. It has it's own protocol and logstash plugins and there's docs on how to install them to logstash.

Your specific issue was reported at driskell/log-courier#9 and it's now fixed in the develop branch. Hoping to merge to stable at the weekend.

Jason