Fabric / Crashlytics - only the first line of a logged message is visible in the details of the problem

I have been using Crashlytics crash and a non-fatal error in my applications for some time now. Im improving both log reports as described here: https://docs.fabric.io/apple/crashlytics/enhanced-reports.html#custom-logging-in-swift

I recently noticed that if I try to write a message with a new line in it, all the text after the new line will be deleted by the SDK, and thus only the first line will be visible in Crashlytics. As far as I remember, this did not work before. The entire message was visible and correctly formatted using newlines.

Example:

let logMsg = "This is a multiline \n message \n Hope all lines are visible in Crashlytics." 
CLSLogv("%@", getVaList([logMsg])) 

in Crashlytics, only this part is logged:

1 | 13:13:00:928 (UTC) | This is a multiline

This is mistake? Can I prevent the creation of the Crashlytics SDK? Right now, I'm skipping some important parts of the magazines.

+4
source share

Source: https://habr.com/ru/post/1694242/


All Articles