• 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: automating NSLog events - an on off switch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: automating NSLog events - an on off switch
      • From: Michael Engelhart <email@hidden>
References: 
 >automating NSLog events - an on off switch (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: automating NSLog events - an on off switch
  • Next by Date: EOModeler...
  • Previous by thread: automating NSLog events - an on off switch
  • Next by thread: Re: automating NSLog events - an on off switch
  • Index(es):
    • Date
    • Thread