32 setp(buffer,buffer+Size);
33 const char* _ident = 0;
36 _ident = mAppName.
c_str();
38 openlog (_ident, LOG_NDELAY | LOG_PID, mFacility);
51 int _level = LOG_DEBUG;
81 syslog (mFacility | _level,
"%s", pbase());
85 setp(buffer, buffer+Size);
98 *pptr() =
static_cast<unsigned char>(c);
110 static_cast<SysLogBuf *
>(os.rdbuf())->mLevel = level;
#define resip_assert(x)
This file needs to work for both C and C++ code.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
const char * c_str() const
Returns a null-terminated string representing.
bool empty() const noexcept
Checks whether the Data is empty.
Singleton that handles logging calls.
EncodeStream & operator<<(EncodeStream &strm, const BaseException &e)