Skip to content

Instantly share code, notes, and snippets.

@pushlink
Last active October 22, 2017 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pushlink/6ef1f93e38c6566bc757 to your computer and use it in GitHub Desktop.
Save pushlink/6ef1f93e38c6566bc757 to your computer and use it in GitHub Desktop.
//When sending exception manually, PushLink doesn't print it in logcat. You have to print it by yourself.
try {
...
} catch (Throwable t) {
Log.e("MyApp", "Some", t);
PushLink.sendAsyncException(t);
//or
Map<String, String> moreInfo = ...
PushLink.sendAsyncException(t, moreInfo);
}
...
//You can also disable the automatic exception catch/send
PushLink.disableExceptionNotification();
...
//To receive LogCat last ones 100 lines just add <uses-permission android:name="android.permission.READ_LOGS" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment