• 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: Chris Backas <email@hidden>
  • Date: Wed, 23 Jul 2008 11:45:44 -0400

I agree with this. I like to leave my Console open most of the time, to monitor for potential software problems. I really dislike applications that just spew endless nonsense there under even normal conditions.

Chris


On Jul 23, 2008, at 11:36 AM, Andrew Merenbach wrote:

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.

Cheers,
	Andrew

On Jul 23, 2008, at 8:33 AM, Phillip Jacobs 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.

Thanks,
-Phillip

On Jul 23, 2008, at 10:30 AM, Andrew Merenbach wrote:

Hi!

I think that you would want an @ symbol before the opening quote:

NSLog(@"Whatever");

Cheers,
	Andrew

On Jul 23, 2008, at 8:18 AM, Ian was here wrote:

Try this


#ifdef DEBUG NSLog("Whatever"); #endif





--- On Wed, 7/23/08, Mike <email@hidden> wrote:

From: Mike <email@hidden>
Subject: NSLog on releasebuild
To: "Cocoa-Dev List" <email@hidden>
Date: Wednesday, July 23, 2008, 7:48 AM
Hello,

During development and debug I typically use tons of
NSLog()-messages
to get info what's happening.
I don't wish to include these messages to release-build
so what is
common/recommended way to get rid of them?

Should I comment them all out or is there some easier way
to disable
them or should I just leave them as they are?

Thanks.

-Mike
_______________________________________________

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



_______________________________________________

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

_______________________________________________

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


_______________________________________________

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

_______________________________________________

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


References: 
 >Re: NSLog on releasebuild (From: Ian was here <email@hidden>)
 >Re: NSLog on releasebuild (From: Andrew Merenbach <email@hidden>)
 >Re: NSLog on releasebuild (From: Phillip Jacobs <email@hidden>)
 >Re: NSLog on releasebuild (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: NSLog on releasebuild
  • Next by Date: NSArrayController and bindings and RaiseMan
  • Previous by thread: Re: NSLog on releasebuild
  • Next by thread: Re: NSLog on releasebuild
  • Index(es):
    • Date
    • Thread