RE: Leave NSLog()s in Final Product?
RE: Leave NSLog()s in Final Product?
- Subject: RE: Leave NSLog()s in Final Product?
- From: "Guy Umbright" <email@hidden>
- Date: Fri, 12 Mar 2004 09:28:31 -0600
- Thread-topic: Leave NSLog()s in Final Product?
To expand a bit on this, perhaps use Log4Cocoa which would facilitate
being able to turn the logging on/off with a bit less work on your
part. A single 'level' setting in prefs could allow you to control
what gets logged and the multiple severities gives a finer level
of control.
guy
-----Original Message-----
From: Allan Odgaard [
mailto:email@hidden]
Sent: Friday, March 12, 2004 9:01 AM
To: Jerry Krinock
Cc: Cocoa Developers
Subject: Re: Leave NSLog()s in Final Product?
On 12. Mar 2004, at 15:26, Jerry Krinock wrote:
>
Is there any reason why I should not leave NSLog() calls in my final,
>
released product?
Yes, they will clutter up the end users system log -- try to open the
program "Console", this is stdout for GUI programs, and should
preferably only contain serious errors and not verbose run-time info
(because that makes it very difficult to find the error statements).
>
They don't seem to slow it down any. The advantage is that, if I ever
>
get a
>
bug report from a user, I can simply have them launch it from
>
Terminal, send
>
me the output, and I can probably tell where the problem is.
E.g. check for some debug property in your environment, then the user
can still do so, but he'll have to launch your application with a
debug-argument, setting an environment-variable or similar...
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
This electronic mail message and any attached files contain information
intended for the exclusive use of the individual or entity to whom it is
addressed and may contain information that is proprietary, privileged,
confidential and/or exempt from disclosure under applicable law. If you are
not the intended recipient, you are hereby notified that any viewing, copying,
disclosure or distribution of this information may be subject to legal
restriction or sanction. Please notify the sender, by electronic mail or
telephone, of any unintended recipients and delete the original message
without making any copies.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.