[PATCHES] CTDB logging rework

Martin Schwenke martin at meltin.net
Fri Oct 17 04:00:29 MDT 2014


On Fri, 17 Oct 2014 10:55:53 +0200, Volker Lendecke
<Volker.Lendecke at SerNet.DE> wrote:

> On Fri, Oct 17, 2014 at 02:53:01PM +1100, Martin Schwenke wrote:
> > This reworks much of the CTDB logging subsystem.  Main points are:
> > 
> > * Bug fix to put a newline back at the end of messages logged to file
> >   (recent regression).
> > 
> > * Remove the separate CTDB log daemon.
> > 
> > * Add syslog via UDP logging, as per RFCs 5424 and RFC5426.
> 
> As talked about via chat, it would be great to also do
> nonblocking sendmsg to /dev/log.

Yep.  I've had more of a think.  I'll simplify it to have just a "file"
and a "syslog" backend.  Instead of specifying "syslog-udp", I'll make
it "syslog:udp", so the difference can be handled in the setup function.
Then I can trivially add "syslog:lossy" (or "syslog:nonblocking").

... and then I'm getting out of the logging business...  ;-)

peace & happiness,
martin


More information about the samba-technical mailing list