Re: NSLog on releasebuild
Re: NSLog on releasebuild
- Subject: Re: NSLog on releasebuild
- From: "Timothy Reaves" <email@hidden>
- Date: Wed, 23 Jul 2008 14:41:24 -0400 (EDT)
- Importance: Normal
> On Jul 23, 2008, at 6:48 PM, Mike wrote:
>
>> 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
>
> #ifndef DEBUG
> # define NSLog(...)
> #endif
>
>
> - Dmitri
Or simply use Log4Cocoa.
_______________________________________________
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