Why I Don't See Logs in Firebase Crash Reporting

I use Firebase Crash Reporting.

I saw here which is called Logs.

But how to use it?

I have Google Analyticsin my project, and I am trying to log alarms using FirebaseCrash.log()exactly the same method.

public void sendGoogleAnalyticsEvent(String category, String label, String action) {
    Map<String, String> build = new HitBuilders.EventBuilder()
            .setCategory(category)
            .setLabel(label)
            .setAction(action)
            .build();
    tracker.send(build);
    FirebaseCrash.log("Category: " + category + " label: " + label + " action: " + action);
}

But I do not see any Logsin the accident. This guy is talking about automatically recorded events, I don’t see this either. What's wrong?

UPDATE : If I select "Analytics" from the Firebase menu, everything is displayed there and works correctly

+4
source share
2 answers

, SDK Firebase Crash Reporting SDK, 10.0.1

, Firebase Crash Reporting, Firebase Analytics, Firebase Analytics.

compile 'com.google.firebase:firebase-core:10.0.1'

:

Bundle bundle = new Bundle();
bundle.putString("name", "button");
FirebaseAnalytics.getInstance(this).logEvent("button_click", bundle);

throw new RuntimeException("This is a crash");

+3

:

" , (Throwable).

, (log, string) logcat (int, String, String) , , .

// THIS IS ADDITIONAL INFORMATION SHOWN IN LOGS SECTION OF EACH ISSUE
FirebaseCrash.log("User selects Settings");
...

FirebaseCrash.log("User selects Enable BT");
...

:

// THIS SHOWS UP IN ISSUES IN CRASH REPORTING
Throwable t=new Throwable("BluetoothAdapter is null in init_BT()").fillInStackTrace();
FirebaseCrash.report(t);

, , Firebase Analytics logEvent() , "" , Wilik.

( Captech ): " , " app_exception ". Analytics..." [ ]

https://developers.google.com/android/reference/com/google/firebase/crash/FirebaseCrash https://www.captechconsulting.com/blogs/an-introduction-to-firebase-analytics-and-crash-reporting

+2

Source: https://habr.com/ru/post/1665211/


All Articles