Java Code Examples for com.google.firebase.crash.FirebaseCrash#log()

The following examples show how to use com.google.firebase.crash.FirebaseCrash#log() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WelcomeFragment.java    From gito-github-client with Apache License 2.0 5 votes vote down vote up
@Override
public void startDashboard() {
    if (getActivity() != null) {
        // Hide progress bar
        mProgressBar.setVisibility(View.GONE);
        // Start dashboard
        Intent intent = new Intent(getContext(), NavigationViewActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(intent);
        // Finish current activity
        getActivity().finish();
    } else {
        FirebaseCrash.log("Dashboard cannot be started, activity is null");
    }
}
 
Example 2
Source File: FireBaseCrashReport.java    From AndroidStarterKit with MIT License 5 votes vote down vote up
public void reportError(Throwable throwable, Object... args) {
  if (args != null) {
    FirebaseCrash.log(argumentsToString(args));
  }

  FirebaseCrash.report(throwable);
}
 
Example 3
Source File: Log.java    From android-galaxyzoo with GNU General Public License v3.0 5 votes vote down vote up
private static void fatal(final String message) {
    if(android.util.Log.isLoggable(LOG_TAG, android.util.Log.ERROR)) {
        android.util.Log.e(LOG_TAG, defaultString(message));

        FirebaseCrash.log(defaultString(message));
    }
}
 
Example 4
Source File: Log.java    From android-galaxyzoo with GNU General Public License v3.0 5 votes vote down vote up
public static void error(final String message, final Throwable e) {
    if(android.util.Log.isLoggable(LOG_TAG, android.util.Log.ERROR)) {
        android.util.Log.e(LOG_TAG, defaultString(message), e);

        FirebaseCrash.log(defaultString(message));
    }
}
 
Example 5
Source File: Log.java    From android-galaxyzoo with GNU General Public License v3.0 5 votes vote down vote up
public static void error(final String message) {
    if(android.util.Log.isLoggable(LOG_TAG, android.util.Log.ERROR)) {
        android.util.Log.e(LOG_TAG, defaultString(message));

        FirebaseCrash.log(defaultString(message));
    }
}
 
Example 6
Source File: FirebaseCrashUtils.java    From Protein with Apache License 2.0 4 votes vote down vote up
public static void log(String message) {
    FirebaseCrash.log(message);
}
 
Example 7
Source File: FirebaseLogger.java    From eternity with Apache License 2.0 4 votes vote down vote up
@Override
public void log(String message) {
  FirebaseCrash.log(message);
}
 
Example 8
Source File: FireBaseCrashReport.java    From AndroidStarterKit with MIT License 4 votes vote down vote up
public void log(String msg) {
  FirebaseCrash.log(msg);
}
 
Example 9
Source File: RNFirebaseCrashReportModule.java    From react-native-firebase-crash-report with ISC License 4 votes vote down vote up
@ReactMethod
public void log(String message) {
    FirebaseCrash.log(message);
}
 
Example 10
Source File: FirebaseAnalytics.java    From yahnac with Apache License 2.0 4 votes vote down vote up
@Override
public void logSomethingWentWrong(String errorMessage) {
    FirebaseCrash.log(errorMessage);
}
 
Example 11
Source File: FirebaseTree.java    From wear-notify-for-reddit with Apache License 2.0 4 votes vote down vote up
@Override public void i(String message, Object... args) {
    FirebaseCrash.log(String.format(message, args));
}
 
Example 12
Source File: FirebaseTree.java    From wear-notify-for-reddit with Apache License 2.0 4 votes vote down vote up
@Override public void w(String message, Object... args) {
    FirebaseCrash.log(String.format(message, args));
}
 
Example 13
Source File: FirebaseTree.java    From wear-notify-for-reddit with Apache License 2.0 4 votes vote down vote up
@Override public void e(String message, Object... args) {
    FirebaseCrash.log(String.format(message, args));
}