sipi
sipi copied to clipboard
Syslog / Log4cxx
I'm trying to understand how logging is used in sipi.
Currently setlogmask is used in a couple of places in this construct:
int old_ll = setlogmask(LOG_MASK(LOG_INFO));
syslog(LOG_INFO, "Got SIGINT, stopping server");
setlogmask(old_ll);
Why would we want to override the loglevel set at the start of the application?
Also, could we switch logging to log4cxx. I miss hierarchical logging, i.e. having the option to set separate loglevels for different parts of the application. I find this very usefull in debugging, as the logoutput doesn't get filled up with information that I don't need.