Comments (6)
https://github.com/pubnub/objective-c/tree/master/iOS#logging
#define PNLOG_LOGGING_ENABLED 1
I will add an explicit line to the docs to be sure there is no confusion moving forward.
from objective-c.
Should i actually change the header file? i've been trying to redefine / undefine this flag without success, yet i'm not sure i'm doing it properly as i don't have a strong c/cpp background. Appreciate your help!
from objective-c.
@nimast no problem, we're here to help. Just open PubNub/Misc/PNMacro.h and search for the line
#define PNLOG_LOGGING_ENABLED 1
And change the 1 to a 0, then recompile. Let me know if that helps you.
from objective-c.
I was hoping for a way to do this without touching pubnub's code, as our team is using CocoaPods and follows a best practise of leaving the Pods project's sources out of version control. This way every developer runs pods install by that ensuring dependencies have been met. Unfortunately (in this case), this also means that we often get all of our Pods source files overwritten by the original sources. As a result, in order to turn off this flag in pubnub's sources i'd have to fork the repo and create another podspec / point to that repository on my Podfile, and will need to manually keep it up to date by pulling from this one, which is a little on the hight side of maintenance for turning off a flag..
Though totally workaroundable, it will be really nice to see some other option for doing this without changing the sources (maybe as part of initialization / configuration?) in some future release.
At any case, setting this value to 0 works perfectly.
Thanks a lot!
from objective-c.
@nimast we'll be adding a fully configurable logger by 3.5.4, if not sooner. Sorry for the inconvenience in the meantime, but we're definitely addressing this as a top priority!
from objective-c.
Hi @nimast
Actually logging should be disabled by default and because of mistake it has been lefty turned on.
Those logging mostly created for debugging in case of any issues to help us discover why you have some troubles.
from objective-c.
Related Issues (20)
- Crash using library : [__NSMallocBlock__ handleClientConnectionStateChange:]: unrecognized selector sent to instance 0x17044e460 HOT 3
- Decryption error HOT 1
- Can't disable logger HOT 6
- PubNub sends push notifications to those already subscribed and present in the chat room? HOT 6
- 3.6.2 Released!
- requestHistoryForChannel: callback never called HOT 4
- When is the mentioned update for aps / APNs handling going to come out? HOT 6
- PubNub Crashes upon subscription HOT 4
- 3.6.3 Released!
- Retrieve Channel History HOT 2
- TableLoad before Request History HOT 3
- Multiple channel subscriptions with different cipher, subscribe, and auth keys HOT 1
- Python - publishing to APNS HOT 1
- Has any one got this working with swift and cocoapods? HOT 2
- Several crashes in 3.7.10.4 HOT 6
- PNJSONSerialization replacing NSNull characters during serialization prevents proper deserialization HOT 1
- PNImports.h file not found HOT 10
- Can't update sdk from COcoa pods any more HOT 4
- Does character ":" (colon) has special meaning in the channel name? HOT 5
- Cannot use the library in an app extension. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objective-c.