简体   繁体   中英

Add LogCat logs to Firebase Crashlytics

I'm using Firebase Crashlytics to report crashes. I'm using a game framework that handles logging for me and when running on Android, it logs to LogCat. I want to be able to include the LogCat logs with the crash report in 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.

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? Does Firebase have a built in supported way?

I suppose there is no feature to save logs into Firebase Crashlytics , but I found an interesting solution for saving logs into Firebase Realtime Database .

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