[英]Add LogCat logs to Firebase Crashlytics
I'm using Firebase Crashlytics to report crashes.我正在使用 Firebase Crashlytics 报告崩溃。 I'm using a game framework that handles logging for me and when running on Android, it logs to LogCat.我正在使用一个为我处理日志记录的游戏框架,当在 Android 上运行时,它会记录到 LogCat。 I want to be able to include the LogCat logs with the crash report in Crashlytics.我希望能够将 LogCat 日志包含在 Crashlytics 中的崩溃报告中。 Is this possible?这可能吗?
I found this Library that could help ( https://github.com/Ereza/LogcatReporter ), but I'm not sure how well supported it is.我发现这个库可以提供帮助( https://github.com/Ereza/LogcatReporter ),但我不确定它的支持程度。
I know I can log like this:我知道我可以这样记录:
FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance();
crashlytics.log("my message");
crashlytics.log("E/TAG: my message");
But I would prefer for the framework I'm using to handle the logging.但我更喜欢我用来处理日志记录的框架。
Any way to include those LogCat logs?有什么方法可以包含这些 LogCat 日志? Does Firebase have a built in supported way? Firebase 是否有内置的支持方式?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.