[reSIProcate] log entry creation for external only
Justin Matthews
jmatthewsr at gmail.com
Mon Dec 4 14:17:44 CST 2006
For apps that use external logging only, can Log::Guard::Guard() disable
outputting the tags to the log stream since it will never be used anyway?
Log::Guard::Guard(resip::Log::Level level,
const resip::Subsystem& subsystem,
const char* file,
int line) :
mLevel(level),
mSubsystem(subsystem),
mFile(file),
mLine(line),
mData(Data::Borrow, mBuffer, sizeof(mBuffer)),
mStream(mData.clear())
{
/* mod, not needed by external logger*/
if (resip::Log::_type != resip::Log::OnlyExternal)
{
Log::tags(mLevel, mSubsystem, mFile, mLine, mStream);
mStream << resip::Log::delim;
mStream.flush();
mHeaderLength = mData.size();
}
else
{
mHeaderLength = 0;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20061204/70ad4a59/attachment.htm>
More information about the resiprocate-devel
mailing list