ExceptionLogger 1.0.0

ExceptionLogger 1.0.0

Adarsh Rai 维护。



  • 作者:
  • Adarsh Rai

ExceptionLogger

一个轻量级的异常记录器,可以自动存储任何崩溃日志到用户默认设置并按需返回。

如果您不希望在测试期间等待崩溃日志导出并重新符号化分析之前,可以使用自动存储应用中发生的任何崩溃的 ExceptionLogger,您可以在下次重启时提取崩溃详情。在应用中显示或通过电子邮件发送。

安装

  • 要通过 Cocoapods 进行安装,请在您的 Podfile 中添加以下内容:
target 'ProjectName' do
    pod 'ExceptionLogger'
end
  • 或者您可以将 ExceptionLogger 中的文件复制粘贴到您的项目中。这里只有两个类
    • ELExceptionLogger
    • GTMStackTrace

用法

  • Swift 中
import ExceptionLogger

//To install the exception logger
ELExceptionLogger.installExceptionLogger()

//To fetch last stored exception logger
ELExceptionLogger.lastExceptionDetails()
  • Objective-C 中
#import <ExceptionLogger/ExceptionLogger.h>

//To install the exception logger
[ELExceptionLogger installExceptionLogger];

//To fetch last stored exception logger
[ELExceptionLogger lastExceptionDetails]

注意

ExceptionLogger 使用了来自.google/google-toolbox-for-mac 的 GTMStackTrace。

许可证

ExceptionLogger采用MIT许可发布。