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>
@@ -56,7 +57,8 @@ BtGpi16::BtGpi16(RDMatrix *matrix,QObject *parent)
bt_device->setWordLength(tty->dataBits());
bt_device->setParity(tty->parity());
if(!bt_device->open(QIODevice::Unbuffered|QIODevice::ReadWrite)) {
LogLine(RDConfig::LogWarning,"unable to open serial device \""+tty->port()+"\".");
syslog(LOG_WARNING,"unable to open serial device \"%s\"",
(const char *)tty->port().toUtf8());
}
}
delete tty;