Skip to content

Instantly share code, notes, and snippets.

@sembozdemir
Last active July 3, 2016 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sembozdemir/33e6c118a53775e404282a5b39a669e6 to your computer and use it in GitHub Desktop.
Save sembozdemir/33e6c118a53775e404282a5b39a669e6 to your computer and use it in GitHub Desktop.
Try-catch block without timber and any other logger class
try {
// throw exception
throwException();
} catch (Exception e) {
// Crashlytics
Crashlytics.logException(e);
// Firebase Crash Reporting
FirebaseCrash.logcat(Log.ERROR, TAG, e.getMessage());
FirebaseCrash.report(e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment