user6644763
user6644763

Reputation:

How to show custom logs from App to Crashlytics dashboard

I am trying to report custom logs from my app to Crashlytics without any crashes. I want to log a particular button action and display it in the Crashlytics dashboard. Is there a way to do this in Crashlytics?

Upvotes: 0

Views: 552

Answers (1)

Paul Lafytskyi
Paul Lafytskyi

Reputation: 273

- (void)recordError:(NSError *)error;
- (void)recordError:(NSError *)error withAdditionalUserInfo:(nullable CLS_GENERIC_NSDICTIONARY(NSString *, id) *)userInfo;

Just use the instance of Crashlytics and you can receive your non-fatal issue with the custom error.

Also, you can send additional logs

CLSLog(NSString *format, ...) 

And will be helpful to use Answers if you need to see some actions statistic or events.

+ (void)logCustomEventWithName:(NSString *)eventName
          customAttributes:(nullable ANS_GENERIC_NSDICTIONARY(NSString *, id) *)customAttributesOrNil;

Upvotes: 1

Related Questions