https://github.com/dispatchmain/exceptionlogger
A lightweight exception logger for iOS applications
https://github.com/dispatchmain/exceptionlogger
crash-reporting exceptionlogger ios objective-c
Last synced: 3 months ago
JSON representation
A lightweight exception logger for iOS applications
- Host: GitHub
- URL: https://github.com/dispatchmain/exceptionlogger
- Owner: dispatchMain
- License: mit
- Created: 2018-02-21T04:37:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-09T03:24:37.000Z (about 8 years ago)
- Last Synced: 2025-03-27T22:37:25.088Z (about 1 year ago)
- Topics: crash-reporting, exceptionlogger, ios, objective-c
- Language: Objective-C
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ExceptionLogger
A lightweight exception logger that automatically stores any crashlogs in user defaults and returns when asked for.
If you do not want to wait for a crashlog to be exported and then re-symbolicated before you could analyze that during testing, use ExceptionLogger that would automatically store any crash that occurs in your app and you can pull out the crash details in next relaunch. Display in the app or send that over email.
## Installation
* To install via cocoapods, add below to your Podfile
```ruby
target 'ProjectName' do
pod 'ExceptionLogger'
end
```
* Or you can copy paste the files from ExceptionLogger to your project. There are only two classes:
* ELExceptionLogger
* GTMStackTrace
## Usage
* In swift
```swift
import ExceptionLogger
//To install the exception logger
ELExceptionLogger.installExceptionLogger()
//To fetch last stored exception logger
ELExceptionLogger.lastExceptionDetails()
```
* In Objective-C
```objective-c
#import
//To install the exception logger
[ELExceptionLogger installExceptionLogger];
//To fetch last stored exception logger
[ELExceptionLogger lastExceptionDetails]
```
## Note
ExceptionLogger uses GTMStackTrace from [here](https://github.com/google/google-toolbox-for-mac).
## License
ExceptionLogger is released under MIT License.