Re: NSLog err and debug?
Re: NSLog err and debug?
- Subject: Re: NSLog err and debug?
- From: Chuck Hill <email@hidden>
- Date: Wed, 26 Mar 2003 13:10:16 -0800
- Organization: Global Village Consulting, Inc.
I do this early in my Application constructor:
System.setOut(((NSLog$PrintStreamLogger)NSLog.out).printStream());
System.setErr(((NSLog$PrintStreamLogger)NSLog.out).printStream());
I don't recall if this was out of neccesity or ignorance. :-) You should be
able to do the same thing with the NSLog streams / check them for equality.
Chuck
Jonathan Rochkind wrote:
Under normal circumstances, where you haven't done anything to change
the defaults...
will NSLog.err.appendln and NSLog.debug.appendln go to the same place?
What's the difference anyway? Maybe debug will be output only depending
on the debugging properties set (but isn't it your responsibility to
ensure that in your own code, by checking NSLog.debuggingAllowedFor...
?) but err will always be output?
Or are they exactly the same unless you set err or debug to be something
different? Can anyone explain this? When should I use one and when the
other for console/log output?
--Jonathan
_______________________________________________
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.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.