Skip to content

fpg1503/FPGSilentLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FPGSilentLogger

[CI Status](https://travis-ci.org/Francesco Perrotti-Garcia/FPGSilentLogger) Version License Platform

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, fpg1503@gmail.com

License

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

About

🔌 Plug and play automatic error and navigation logging for iOS apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published