[Openais] dynamically setting the loglevel/priority

angus salkeld angus.salkeld at alliedtelesis.co.nz
Sun Oct 19 18:00:01 PDT 2008


Hi

Here is an unfinished patch (before I have had time to include your
suggestions below).

Note: there is still a bit of debug, but it does work.

-Angus


On Sun, 2008-10-19 at 17:20 -0700, Steven Dake wrote:
> On Mon, 2008-10-20 at 07:20 +1300, angus salkeld wrote:
> > Hi
> > 
> > I need to be able to dynamically set logsys's loglevel/priority (via
> > IPC).
> > 
> > So this is what I had in mind.
> > 
> > During each sub-system's init place the default priority in objdb.
> > Then use the objdb track_start() to track any changes to it and any
> > other logging settings.  This will let me tweek logging setting via
> > confdb at runtime.
> > 
> 
> We probably need another C file for this functionality but I agree the
> objdb_track_start() api is the way to do it and it sounds like a great
> feature.
> 
> I'd recommend putting the registration of callbacks and the handling of
> them in a file such as logcfg.c and link that into the corosync binary.
> 
> If APIs are missing from logsys to do what you need feel free to send
> patches on top of the logsys v2 tree.
> 
> Regards
> -steve
> 
> > Another neat thing would be to dump the blackbox from the flight
> > recorder.
> 
> > Steve is this part of logsys going to change drastically?
> > i.e. logsys_loggers[] priority & trace (the basic structures for
> > configuring logsys).
> > 
> > 
> > Regards
> > -Angus
> > 
> > _______________________________________________
> > Openais mailing list
> > Openais at lists.linux-foundation.org
> > https://lists.linux-foundation.org/mailman/listinfo/openais
> 
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-the-changing-of-the-loglevel-at-runtime.patch
Type: application/mbox
Size: 14731 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20081020/91976f2d/attachment-0001.bin 


More information about the Openais mailing list