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 > [email protected] > https://lists.linux-foundation.org/mailman/listinfo/openais _______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
