Debug level setting in run time

Hi,

Is there an option to set the debug level in run time?
we set the debug level during init using:
confd_init(“ConfdAdaptor”, stderr , CONFD_DEBUG);

Sometimes for debug we would like to set it to other level. can we do it in run time without compilling again?

thanks
Inbal

Not when you sen the log to a FILE * stream but see the section SYSLOG AND DEBUG in confd_lib_lib(3) about sending the logs to the syslog or through you own hook before it’s printed.

You can change level and FILE* in runtime via

   int confd_set_debug(enum confd_debug_level debug, FILE *estream);

   This function can be used to change the estream and debug parameters
   for the library.