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
Post a Comment