简体   繁体   English

带有添加日志的Flurry IOS崩溃

[英]Flurry IOS Crash with addition log

Can I add logEvent when app is before/after crash? 当应用程序崩溃之前/之后,我可以添加logEvent吗? 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 查看Flurry的iOS SDK文档时 ,您应该查看方法

(void) + logError:message:error:

This method captures an error for reporting to Flurry, so you can use it for add some extra info. 此方法捕获到向Flurry报告的错误,因此您可以使用它来添加一些额外的信息。 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. PS =我对这个主题真的很感兴趣,所以我继续寻找更多信息,如果我有更多有用的信息,我将更新此答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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