FPGSilentLogger 0.1.2

FPGSilentLogger 0.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Nov 2015

Maintained by Francesco.



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 so you are sure that this package Does The Right Thing™.

Customization

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] ";
}

Installation

FPGSilentLogger is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "FPGSilentLogger"

Author

Francesco Perrotti-Garcia, [email protected]

License

FPGSilentLogger is available under the MIT license. See the LICENSE file for more info.