Feature #1658: split log messages with newlines into separate messages and log them