• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSLog on releasebuild
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSLog on releasebuild
  • Next by Date: Re: Dumb question: How does NSScrollView know the size of the thing it's scrolling?
  • Previous by thread: Re: Dumb question: How does NSScrollView know the size of the thing it's scrolling?
  • Next by thread: Re: Dumb question: How does NSScrollView know the size of the thing it's scrolling?
  • Index(es):
    • Date
    • Thread