All Projects → ajitsing → Sherlock

ajitsing / Sherlock

Licence: Apache-2.0 license
Sherlock reports any crash that occurs in your application

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sherlock

Exceptionless
Exceptionless server and jobs
Stars: ✭ 2,107 (+1925.96%)
Mutual labels:  crash-reporting, crash-reports, crash-reporting-tool
Crashalert
Set of React Native components that allow reporting of the crashes in RN applications.
Stars: ✭ 68 (-34.62%)
Mutual labels:  crash-reporting, crash-dump, crash-reporting-tool
raygun4android
Android crash reporting provider for Raygun
Stars: ✭ 19 (-81.73%)
Mutual labels:  crash-reporting, crash-reporting-tool
Ndcrash
A powerful crash reporting library for Android NDK. Don't forget to run git submodule update --init --recursive after checking out.
Stars: ✭ 91 (-12.5%)
Mutual labels:  crash-reporting, crash-reports
elmah.io
ELMAH error logger for sending errors to elmah.io.
Stars: ✭ 31 (-70.19%)
Mutual labels:  crash-reporting, crash-reporting-tool
Raven Csharp
Superseded by: https://github.com/getsentry/sentry-dotnet
Stars: ✭ 231 (+122.12%)
Mutual labels:  crash-reporting, crash-reports
Sentry
Sentry is cross-platform application monitoring, with a focus on error reporting.
Stars: ✭ 29,700 (+28457.69%)
Mutual labels:  crash-reporting, crash-reports
bugsnag-java
Bugsnag error reporting for Java.
Stars: ✭ 51 (-50.96%)
Mutual labels:  crash-reporting, crash-reporting-tool
Raven Go
Sentry client in Go
Stars: ✭ 554 (+432.69%)
Mutual labels:  crash-reporting, crash-reports
Raven Python
Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
Stars: ✭ 1,677 (+1512.5%)
Mutual labels:  crash-reporting, crash-reports
Sentry Php
The official PHP SDK for Sentry (sentry.io)
Stars: ✭ 1,591 (+1429.81%)
Mutual labels:  crash-reporting, crash-reports
metrica-sdk-ios
AppMetrica is a free real-time ad tracking and mobile app analytics solution.
Stars: ✭ 68 (-34.62%)
Mutual labels:  crash-reporting, crash-reports
Sentry Laravel
Laravel SDK for Sentry
Stars: ✭ 927 (+791.35%)
Mutual labels:  crash-reporting, crash-reports
Sentry Ruby
Sentry SDK for Ruby
Stars: ✭ 724 (+596.15%)
Mutual labels:  crash-reporting, crash-reports
Bugsnag Android
Bugsnag crash monitoring and reporting tool for Android apps
Stars: ✭ 990 (+851.92%)
Mutual labels:  crash-reporting, crash-reports
Countly Sdk Android
Countly Product Analytics Android SDK
Stars: ✭ 626 (+501.92%)
Mutual labels:  crash-reporting, crash-reports
Sentry Go
Official Sentry SDK for Go
Stars: ✭ 415 (+299.04%)
Mutual labels:  crash-reporting, crash-reports
Raven Node
A standalone (Node.js) client for Sentry
Stars: ✭ 462 (+344.23%)
Mutual labels:  crash-reporting, crash-reports
Ohbug
An open source application information monitoring platform.
Stars: ✭ 101 (-2.88%)
Mutual labels:  crash-reporting, crash-reports
Bugsnag Cocoa
Bugsnag crash reporting for iOS, macOS and tvOS apps
Stars: ✭ 167 (+60.58%)
Mutual labels:  crash-reporting, crash-reports

Sherlock

Maintenance Build Status HitCount Open Source Love Maven Central API Twitter Follow

Sherlock reports any crash that occurres in your application as a notification. You just need to initialize Sherlock at the start of your application and it will take care of the rest.

Motivation

The motivation behind creating Sherlock is to make the life of Developer and tester easier. Whenever a tester is testing the app and he/she encounters a crash, most of the time they don't have enough details in their hand to enable developer to start fixing the crash immediately. Now with the help of Sherlock, any tester will have enough info to report the crash.

Alt text

Demo

Installation

debugCompile('com.github.ajitsing:sherlock:1.0.4@aar') {
    transitive = true
}
releaseCompile('com.github.ajitsing:sherlock-no-op:1.0.4@aar')

Usage

To start using Sherlock just add the below line in the onCreate() method of Application class.

public class MyApplication extends Application {
  @Override
  public void onCreate() {
    super.onCreate();
    Sherlock.init(this); //Initializing Sherlock
  }
}

Once you add Sherlock.init(this) Sherlock will take care of reporting all the crashes to you.

See All Crashes

You can view all the crashes by starting the CrashListActivity.

Get All Crashes Captured By Sherlock

Sherlock also provides you a way to get all the crashes which are reported by Sherlock in form of java object. You can get them using below line of code.

Sherlock.getInstance().getAllCrashes()

Before accessing getInstance() make sure that you have initialized Sherlock, otherwise it will throw SherlockNotInitializedException.

App Info

By default Sherlock only captures the version of your application and shows that as part of crash details. If you want to provide some extra details regarding app, you can do so by providing an AppInfoProvider to the Sherlock.

Sherlock.setAppInfoProvider(new AppInfoProvider() {
  @Override
  public AppInfo getAppInfo() {
    return new AppInfo.Builder()
               .with("Version", "2.21") //You can get the actual version using "AppInfoUtil.getAppVersion(context)"
               .with("BuildNumber", "221B")
               .build();
  }
});

Contributing

You can contribute to Sherlock by forking the repo and creating pull requests. You can also contribute by reporting bugs/issues. If you want to see a new feature in Sherlock, just add that as an issue with enough details.

LICENSE

Copyright (C) 2017 Ajit Singh

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].