Re: klibc and logging

From: H. Peter Anvin (
Date: Mon Aug 19 2002 - 12:27:59 EST

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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:17 EST