Git Product home page Git Product logo

sherlock_holmes's Introduction

Sherlock_Holmes

Nice debug logger to capture crash info ad additional info and submit. Sherlock is on the case! Sherlock logs events in your app, crashes, memory usage, iOS version, device Type and navigation tracking.

Should an app crash you would be able to see what controller the app crashed on, what was the last event for that controller, what the memory usage was at the time and device info to help you solve the crime.

Implementation: Added Sherlock.h to your root controller.

To log events in your app use Sherlock_Sleuth(Event, Data) Event: the name of the even such as "View Did Load" or "Making API CALL". If value is nil then the name of the containing method will be used. Data: Additional data to attach to event. In the case of crash this would be the callStack Sleuth gets the name of the controller that it is called in and stores the event and data under that controller. This way in a crash you will know what controller was last logged.

To Check if there was a crash to report use: Sherlock_Investigate(); Returns Boolean Investigate will check for crash log and check if we just crashed This can be used to fire an alert asking the user to submit the crash data.

To Submit crash data use: Sherlock_Solve(); Return NSString of JSON data. This converts the plist of crash data into JSON and returns a JSON string to send to your api. This then deletes the crash log.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.