ios - Disable ASL/NSLog at runtime -


it's easy "disable" nslog @ compile time replacing macro, etc.

can nslog (or asl in general) disabled at runtime?

my goal silence logs not have control over.

look @ lumberjack framework. there can set logging level required. hide log statements when release app, change logging level debug info using #ifdef release , #ifdef debug macros.

update:

in case log statements coming different framework linking, can use method swizzling swap implementation of nslog custom method.


Comments

Popular posts from this blog

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -