[RFC] add an option to buffer masked syslog messages

Mike Frysinger vapier@gentoo.org
Wed Feb 11 19:59:00 GMT 2009


On Wednesday 11 February 2009 14:27:54 Jeff Moyer wrote:
> Roland McGrath <roland@redhat.com> writes:
> >> Roland McGrath <roland@redhat.com> writes:
> >> > Such hair really belongs in the daemon.  syslog should stay simple.
> >>
> >> I'm not sure I agree with your reasoning.  If you think the
> >> implementation is tough to get right, then it's better to do it one
> >> place and share it.  If, on the other hand, you feel that this is really
> >> a niche need, then I can see how you wouldn't want it in a generic
> >> library.  Obviously I feel that this is functionality from which others
> >> could benefit.
> >
> > I think I was unclear.  By "the daemon", I meant syslogd.
> > The hair should not be in the syslog function.
>
> OK, thanks for the clarification.  I would certainly be open to
> implementing this in the syslog daemon.  It would mean that the
> applications using this functionality would get it for free, but they
> would have to log all messages by default (no filtering).  Presumably,
> then, there would be a way to tell the syslog daemon to dump the ring
> buffer for one particular application.  I can float the idea with the
> rsyslogd folks and see what they have to say.

i wonder if it could be shared among loggers then ("libsyslog.a") ... metalog 
does buffering already
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20090211/cb1e0045/attachment.sig>


More information about the Libc-alpha mailing list