Flush logs to HTTP connection after each write

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>