Added $appendNewline flag to the JsonFormatter to enable using it when logging to files, fixes #344