Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why CLSLog messages are missing in Crashlytics?

I have an app logging its crashes to Fabric's Crashlytics platform.

The crash logging works as expected, as it can be observed through the platform's dashboard. However, calls to the command CLSLog doesn't seem to work as expected. The crashing session's log panel doesn't show a proper log output.

crashlytics session detail log

This is how we use CLSLog within the app:

CLSLogv(message, getVaList([""]))

Can somebody point out what might be the possible cause for this problem?

like image 235
Andree Avatar asked Aug 17 '18 05:08

Andree


1 Answers

Seems like there is some mistake in your CLSLogv format. please try something like below

CLSLogv("%@", getVaList([message]))

because of as per fabric custom log doc

Swift string interpolation will not result in a compile-time constant string. Just like with printf and NSLog, using a non-constant string with CLSLog can result in a crash.

like image 123
arunjos007 Avatar answered Oct 29 '22 08:10

arunjos007