Fixes #1500: Log messages exported to files are not separated by newlines