使用PLCrashReporter,你可以在崩溃之前接收事件吗? [英] Using PLCrashReporter, can you receive events before the crash?

查看:232
本文介绍了使用PLCrashReporter,你可以在崩溃之前接收事件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一旦PLCrashReporter检测到错误(例外,信号等),但在应用程序终止之前,我们想要进行其他处理(即记录当前状态)。有人知道如果这是可能使用PLCrashReporter?

We want to do additional processing (i.e. log the current state) once PLCrashReporter has detected an error (either an exception, signal, etc.) but before the app terminates. Does anyone know if this is possible using PLCrashReporter?

推荐答案

不,这是不可能的。你必须做自己的日志记录并将其存储在文件系统上。在下次启动时,您可以将其与崩溃报告一起发送到服务器。例如。使用使用PLCrashReporter的QuincyKit,然后是您自己的服务器或HockeyApp.net。

No, this is not possible. You would have to do your own logging and store that on the filesystem. On the next startup, you could send it alongside the crash report to your server. E.g. using QuincyKit which uses PLCrashReporter and then your own server or HockeyApp.net.

注意:我是QuincyKit的开发人员和HockeyApp的合作开发人员。

Note: I am the developer of QuincyKit and co-developer of HockeyApp.

这篇关于使用PLCrashReporter,你可以在崩溃之前接收事件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆