Re: automating NSLog events - an on off switch
Re: automating NSLog events - an on off switch
- Subject: Re: automating NSLog events - an on off switch
- From: Art Isbell <email@hidden>
- Date: Fri, 9 Jan 2004 18:27:33 -1000
On Jan 9, 2004, at 5:21 PM, Jonathan Fleming wrote:
> Has anyone done or does anyone know how to automate an
> NSLog.out.appendln( "message" ) so that it can be switched on or off
> from an action or other more suitable place when either in development
> or deployment?
> I'm getting tired of building apps with so many methods giving me an
> NSLog readout when I'm developing only to have to then go around the
> app through all the classes to turn off those that may be unnecessary
> in deployment.
Don't add NSLog debugging statements in the first place but instead
use the Java debugger to track values. Just set breakpoints where you
want to look at the state of things. Adding print statements for
debugging when a debugger is available doesn't make much sense and
makes one's code pretty ugly.
Aloha,
Art
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.