2019-06-17 Fred Gleason <fredg@paravelsystems.com>

* Refactored logging system to use syslog(3) exclusively.
	* Removed the 'Facility=', 'LogDirectory=', 'CoreDumpDirectory='
	and 'LogPattern=' directives from rd.conf(5).
This commit is contained in:
Fred Gleason
2019-06-17 17:46:26 -04:00
parent 5d7e82e540
commit a094fbc788
67 changed files with 934 additions and 1441 deletions

View File

@@ -19,6 +19,7 @@
//
#include <stdlib.h>
#include <syslog.h>
#include <qtimer.h>
@@ -64,8 +65,8 @@ BtAdms4422::BtAdms4422(RDMatrix *matrix,QObject *parent)
writeBlock(QString().sprintf("*%uUM0\r\n",BTADMS4422_UNIT_ID),7);
}
else {
rda->config()->log("ripcd",RDConfig::LogWarning,
"failed to open port \""+tty->port()+"\"");
syslog(LOG_WARNING,"failed to open port \"%s\"",
(const char *)tty->port().toUtf8());
}
}
delete tty;