A custom CocoaLumberjack logger for remote logging through Antenna
Objective-C Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DDAntennaLogger.xcworkspace
DDAntennaLogger
Example
Pods
.gitignore
DDAntennaLogger.podspec
LICENSE
Podfile
Podfile.lock
README.md

README.md

DDAntennaLogger

CocoaLumberjack Custom Logger for Remote Logging with Antenna

The easiest way to leverage on logging power of CocoaLumberjack and logging remotely with the simplicity of Antenna.

Install

pod 'DDAntennaLogger', '1.0.0'

Usage

Somewhere, for example in your AppDelegate:

NSString *yourServerURLString = @"...";
NSString *yourServerLogMethod = @"..."; // Could be POST or LOG, or any other supported by your server
[[Antenna sharedLogger] addChannelWithURL:[NSURL URLWithString:yourServerURLString] method:yourServerLogMethod];
[[Antenna sharedLogger] startLoggingApplicationLifecycleNotifications];

DDAntennaLogger *logger = [[DDAntennaLogger alloc] initWithAntenna:[Antenna sharedLogger]];
[DDLog addLogger:logger];

DDLogInfo(@"DDAntennaLogger is cool!");
// => You'll see "DDAntennaLogger is cool!" on your server :)

It's that easy 👍

You may also want to checkout this post to read about a real world used of DDAntennaLogger.

Contact

Giovanni Lodi @mokagio

Special Thanks

This project was after a quick conversation between @sandfoxuk and me, to solve the need of BIZZBY to get deep insight on the code execution while trying to solve a nasty bug.

License

MIT