lkml.org 
[lkml]   [2002]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: klibc and logging
Russell King wrote:
> On Mon, Aug 19, 2002 at 09:58:02AM -0700, H. Peter Anvin wrote:
>
>>Either we can add a "syslog" binary, or you can:
>>
>>echo '<3>The dohickey is fscked' > /dev/kmsg
>
> Ok, that's fine for the echo-from-scripts problem. Now what if I bring
> in something like stderr of gzip? I suppose we need to modify all
> programs like gzip, etc to use syslog (maybe making perror() log to
> syslog)?
>

We need to think carefully about it. perror() and the likes are meant
to be taken in the context of having just executed a command, whereas a
syslog message needs to make sense on its own. That's part of why I
think making it stderr default is a bad idea.

-hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site