sipi icon indicating copy to clipboard operation
sipi copied to clipboard

Syslog / Log4cxx

Open subotic opened this issue 8 years ago • 0 comments

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.

subotic avatar Jun 30 '17 10:06 subotic