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

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -