melke / LogglyLogger-CocoaLumberjack

LogglyLogger-CocoaLumberjack is a custom logger for CocoaLumberjack that logs to the cloud service Loggly
MIT License
63 stars 37 forks source link

The call to DDLogVerbose as per the README fails with error. #43

Open wayneforrest opened 6 years ago

wayneforrest commented 6 years ago

Doing the following: results in an error: "Use of undeclared identifier LOG_LEVEL_DEF"

LogglyLogger *logglyLogger = [[LogglyLogger alloc] init]; [logglyLogger setLogFormatter:[[LogglyFormatter alloc] init]];

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\"}");
wayneforrest commented 6 years ago

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"

My problems has been resolved.