summaryrefslogtreecommitdiff
path: root/src/syslogdevice.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/syslogdevice.cc')
-rw-r--r--src/syslogdevice.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/syslogdevice.cc b/src/syslogdevice.cc
index 927416e..f694835 100644
--- a/src/syslogdevice.cc
+++ b/src/syslogdevice.cc
@@ -5,6 +5,7 @@
* @date 2002, 2003
* ----------------------------------------------------------------- **/
#include "syslogdevice.h"
+
#include <string>
#include <syslog.h>
@@ -16,8 +17,11 @@ using namespace ::Binc;
string SyslogDevice::ident;
//------------------------------------------------------------------------
-SyslogDevice::SyslogDevice(int f, const char *i, int o, int fa)
- : IODevice(f), option(o), facility(fa), priority(LOG_INFO)
+SyslogDevice::SyslogDevice(int f, const char *i, int o, int fa)
+ : IODevice(f)
+ , option(o)
+ , facility(fa)
+ , priority(LOG_INFO)
{
ident = i;
openlog(ident.c_str(), option, facility);
@@ -61,7 +65,7 @@ IODevice::WriteResult SyslogDevice::write(void)
} else if (*i != '\r')
out += *i;
}
-
+
if (out != "") syslog(priority, out.c_str(), out.size());
outputBuffer.clear();