Don't treat EOF as a line terminator.

This is a bugfix for logging lines without or delayed newlines

closes #164