Re: NSLog on releasebuild
Re: NSLog on releasebuild
- Subject: Re: NSLog on releasebuild
- From: Gregory Weston <email@hidden>
- Date: Wed, 23 Jul 2008 13:54:29 -0400
Andrew Merenbach wrote:
Is there anything particularly wrong with NSLog statements being in
a release package? Performance wise? Security wise? Just wondering
the root of the question.
I'd say that the most important reason for removing the NSLog()
statements *might* be the look of the program. Many users who use the
Console probably wouldn't like it to become cluttered with detritus
from spurious log statements. It makes tech support more difficult if
they need to look at their logs for something else, and may confuse
the user -- "What does ....... mean??? Is something wrong?" Just a
thought.
Heartily agree. NSLog output in a released program should be limited
to reporting actual errors with whatever information is available at
that time to locate and diagnose the problem. Any event that's out of
the ordinary is fair game, not just errors. But (almost) any message
that is essentially reporting that an operation worked as intended is
noise.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden