Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silence NewRelic Logging to Console

Tags:

ios

newrelic

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?

like image 805
hukir Avatar asked Jan 29 '26 08:01

hukir


1 Answers

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

like image 55
Jonathan Karon Avatar answered Jan 30 '26 21:01

Jonathan Karon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!