issue #308. Added an option not to append newline automatically when using a custom log formatter