[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSLog and fprintf in base
From: |
Jeff Teunissen |
Subject: |
Re: NSLog and fprintf in base |
Date: |
Wed, 17 Mar 2004 05:34:15 -0500 |
Wim Oudshoorn wrote:
> Error reporting to the user is done by
> calling either NSLog (..) or fprintf (stderr,...)
> On Linux you can redirect NSLog to syslog.
> However fprintf is not redirected to syslog.
>
> I assume that fprintf is used when you want to
> some error and the error can not safely be
> logged by NSLog () [NSLog uses locking and
> base class functionality].
>
> But wouldn't it be nicer if we replace
> fprintf (stderr,...) with a custom
> log function that will also uses syslog?
If you're talking about replacing fprintf, the answer would be a resounding
"NO!". If you're referring to replacing the _use_ of fprintf in some places,
then the answer is "probably".
If I call fprintf (stderr, [...]), that's exactly where I want it to go.
--
| Jeff Teunissen -=- Pres., Dusk To Dawn Computing -=- deek @ d2dc.net
| GPG: 1024D/9840105A 7102 808A 7733 C2F3 097B 161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project http://www.quakeforge.net/
| Specializing in Debian GNU/Linux http://www.d2dc.net/~deek/