Reputation: 3956
I want to replace NSLog with CocoaLumberjack, and I follow the GettingStarted, then add
DDLogError(@"This is an error.");
DDLogWarn(@"This is a warning.");
DDLogInfo(@"This is just a message.");
DDLogVerbose(@"This is a verbose message.");
but why there is no log message in XCode's console?
Upvotes: 5
Views: 7521
Reputation: 4918
DDASLLogger is deprecated as of iOS 10.
You should use DDOSLogger
ddlog.add(DDOSLogger.sharedInstance)
Upvotes: 2
Reputation: 8180
Lumberjack is a generic logging framework. You have to config it to use one (or more) specific log outputs. E.g., for Apple's console, you have to use:
[DDLog addLogger:[DDASLLogger sharedInstance]];
For terminal:
[DDLog addLogger:[DDTTYLogger sharedInstance]];
Upvotes: 17