logglyLogger.logglyKey = @"your-loggly-api-key";
// Set posting interval every 15 seconds, just for testing this out, but the default value of 600 seconds is better in apps
// that normally don't access the network very often. When the user suspends the app, the logs will always be posted.
logglyLogger.saveInterval = 600;
[DDLog addLogger:logglyLogger];
// Do some logging
DDLogVerbose(@"{\"myJsonKey\":\"some verbose json value\"}");
Seems the readme pod version is old and still recommends to add version 2.0 to your pod file.
After updating to
pod "LogglyLogger-CocoaLumberjack", "~> 3.0"
Doing the following: results in an error: "Use of undeclared identifier LOG_LEVEL_DEF"
LogglyLogger *logglyLogger = [[LogglyLogger alloc] init]; [logglyLogger setLogFormatter:[[LogglyFormatter alloc] init]];