32 setp( &m_buf[0], &m_buf[0] + (m_buf.size()-1) );
41 ::openlog(name, option, facility);
47 static std::ostream stream(&syslogbuf);
54 if( pptr() > pbase() )
64 void SyslogStream::writeToDevice()
67 ::syslog( _prio,
"%s", pbase() );
68 setp( &m_buf[0], &m_buf[0] + (m_buf.size()-1) );
81 const char data = prio;
82 stream.write(&data,
sizeof(
char));