13using namespace ::
Binc;
16string SyslogDevice::ident;
19SyslogDevice::SyslogDevice(
int f,
const char *i,
int o,
int fa)
20 :
IODevice(f), option(o), facility(fa), priority(LOG_INFO)
23 openlog(ident.c_str(), option, facility);
57 for (; i != ie; ++i) {
59 syslog(priority, out.c_str(), out.size());
61 }
else if (*i !=
'\r')
65 if (out !=
"") syslog(priority, out.c_str(), out.size());
const std::string & str(void) const
The IODevice class provides a framework for reading and writing to device.
bool waitForRead(void) const
bool waitForWrite(void) const
std::string service(void) const
bool fillInputBuffer(void)
Declaration of the SyslogDevice class.