Question

I've added the New Relic iOS SDK to my project, and it's logging all kinds of information I'm not interested in to the console. I was hoping to find a way to disable it, and found the "Changing the Logging Level" section of this page, but the code provided didn't work.

I've tried the both of the following to no avail before the startWithApplicationToken: call

[NRLogger setLogLevels:NRLogLevelNone];
[NRLogger setLogTargets:NRLogTargetNone];

Is there some other option I need to set?

Was it helpful?

Solution

In New Relic for iOS 3.174, which was released on January 8, we removed some logging messages that did not pay attention to the log level and target selection. If you're using an older version of the SDK please grab the latest version here: https://docs.newrelic.com/docs/releases/ios

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top