Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Crashlytics.log(""); go?

I'm trying to set up my app with firebase+crashlytics for having a better error dashboard.

All the firebase stuff is already working and I'm able to access the features

I tested crashlytics with: Crashlytics.getInstance().crash(); // Force a crash
and i'm able to see the stack trace on my dashboard (inside firebase)

but I'm trying to log non-fatal messages like:
Crashlytics.log("test");

And it doesn't appear anywhere I followed the whole instructions at:
https://firebase.google.com/docs/crashlytics/customize-crash-reports

Still doesn't find any dashboard with the "test" messages

Where does it go? what am I missing?

like image 460
Rafael Lima Avatar asked Sep 10 '18 06:09

Rafael Lima


People also ask

How do I access Crashlytics logs?

Crashlytics associates the logs with your crash data and displays them in the Crashlytics page of the Firebase console, under the Logs tab.

How does Crashlytics work?

Crashlytics helps you to collect analytics and details about crashes and errors that occur in your app. It does this through three aspects: Logs: Log events in your app to be sent with the crash report for context if your app crashes. Crash reports: Every crash is automatically turned into a crash report and sent.


1 Answers

Sending non-debug errors (e.g. your test message) logs to Crashlytics locally, but these exceptions are not uploaded until the app restarts.

As the documentation states:

Crashlytics batches logged exceptions together and sends them the next time the app launches.

This is presumably due to the primary Crashlytics functionality (reporting crashes) working in the same way, and non-fatal errors being a secondary concern using the same code flow.

Whilst this is unfortunate, there are many third party log-collating services that can handle the non-fatal errors.

Note: I'm aware you've received an answer in the comments from Crashlytics, I'm providing a more comprehensive answer for future visitors.

like image 125
Jake Lee Avatar answered Nov 15 '22 00:11

Jake Lee