[](https://travis-ci.org/Francesco Perrotti-Garcia/FPGSilentLogger)
To run the example project, clone the repo, and run pod install
from the Example directory first.
FPGSilentLogger logs all generated erros and view controller lifecycle automatically!
By swizzling methods of our interest all instances of NSError
and UIViewController
are magically logged! We use JRSwizzle
so you are sure that this package Does The Right Thingâ„¢.
Simply conform to FPGLoggerDelegate
and call + [FPGLogger setDelegate:]
with your conformant object!
#pragma mark - FPGLoggerDelegate
- (void)logString:(nonnull NSString *)string {
CLS_Log(@"%@", string);
}
- (nullable NSString *)logPrefix {
return @"[FPG] ";
}
FPGSilentLogger is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "FPGSilentLogger"
Francesco Perrotti-Garcia, fpg1503@gmail.com
FPGSilentLogger is available under the MIT license. See the LICENSE file for more info.