简体   繁体   中英

Flurry IOS Crash with addition log

Can I add logEvent when app is before/after crash? Idea is I want to add user account to "crash log" or something data and when app is crash I know in what account occurred crash.

Thx.

Yep, I think you can do it; looking at iOS SDK Documentation for Flurry , you should look at the method

(void) + logError:message:error:

This method captures an error for reporting to Flurry, so you can use it for add some extra info. See this example:

- (void) webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error 
{
    [Flurry logError:@"WebView No Load" message:[error localizedDescription] error:error];
}

I searched something similar 'time ago for the same reason and I found it this method; I think you can use the parameter message for concatenate your info.

PS = I'm really interested in this topic so I continue looking for find some more info, If I'll have something more useful I'll update this answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM