How do I turn off pub nub logging on iOS in swift?

297 views Asked by At

I am using pub nub for push. There are a ton of helpful logs. I don't want that sometimes, how can I turn off all logging?

I've gone here, and I set all values to 0 rather than 1. That didn't turn any logging off.

I've set PNLogger.loggerEnabled(false) but that doesn't turn it off.

1

There are 1 answers

1
Craig Conover On

Use the method like this:

[PNLogLevel loggerEnabled:YES];
[PNLogLevel loggerEnabled:NO];