https://github.com/fpg1503/fpgsilentlogger
π Plug and play automatic error and navigation logging for iOS apps.
https://github.com/fpg1503/fpgsilentlogger
Last synced: about 1 year ago
JSON representation
π Plug and play automatic error and navigation logging for iOS apps.
- Host: GitHub
- URL: https://github.com/fpg1503/fpgsilentlogger
- Owner: fpg1503
- License: mit
- Created: 2015-10-24T15:07:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-03T00:14:23.000Z (over 10 years ago)
- Last Synced: 2025-04-11T17:52:17.154Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 180 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FPGSilentLogger
[](https://travis-ci.org/Francesco Perrotti-Garcia/FPGSilentLogger)
[](http://cocoapods.org/pods/FPGSilentLogger)
[](http://cocoapods.org/pods/FPGSilentLogger)
[](http://cocoapods.org/pods/FPGSilentLogger)
## Usage
To run the example project, clone the repo, and run `pod install` from the Example directory first.
### What is FPGSilentLogger?
FPGSilentLogger logs all generated erros and view controller lifecycle automatically!
### How does it work?
By swizzling methods of our interest all instances of `NSError` and `UIViewController` are magically logged! We use [`JRSwizzle`](https://github.com/rentzsch/jrswizzle) so you are sure that *this package Does The Right Thingβ’*.
### Customization
Simply conform to `FPGLoggerDelegate` and call `+ [FPGLogger setDelegate:]` with your conformant object!
```objective-c
#pragma mark - FPGLoggerDelegate
- (void)logString:(nonnull NSString *)string {
CLS_Log(@"%@", string);
}
- (nullable NSString *)logPrefix {
return @"[FPG] ";
}
```
## Installation
FPGSilentLogger is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "FPGSilentLogger"
```
## Author
Francesco Perrotti-Garcia, fpg1503@gmail.com
## License
FPGSilentLogger is available under the MIT license. See the LICENSE file for more info.