Fix bug with Logentries handling of multi-line messages

The LogEntries API uses a \n character as message a message terminator.  If a '\n' appears in a message (such as with a stack trace) then the remainder of the message will not be logged.