MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnLogWriteNoEntry

Function xnLogWriteNoEntry

Source/OpenNI/XnLog.cpp:1037–1059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035}
1036
1037XN_C_API void xnLogWriteNoEntry(const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFormat, ...)
1038{
1039 if (!xnLogIsEnabled(csLogMask, nSeverity))
1040 return;
1041
1042 va_list args;
1043 va_start(args, csFormat);
1044
1045 const XnUInt32 nMaxMessageSize = 1024;
1046 XnChar csMessage[nMaxMessageSize+1];
1047 XnUInt32 nChars;
1048 xnOSStrFormatV(csMessage, nMaxMessageSize, &nChars, csFormat, args);
1049
1050 va_end(args);
1051
1052 LogData& logData = LogData::GetInstance();
1053 XnAutoCSLocker locker(logData.hLock);
1054 for (XnLogWritersList::ConstIterator it = logData.writers.Begin(); it != logData.writers.End(); ++it)
1055 {
1056 const XnLogWriter* pWriter = *it;
1057 pWriter->WriteUnformatted(csMessage, pWriter->pCookie);
1058 }
1059}
1060
1061XN_C_API void xnLogWriteBinaryData(const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFile, XnUInt32 nLine, XnUChar* pBinData, XnUInt32 nDataSize, const XnChar* csFormat, ...)
1062{

Callers

nothing calls this directly

Calls 5

xnLogIsEnabledFunction · 0.85
xnOSStrFormatVFunction · 0.50
BeginMethod · 0.45
EndMethod · 0.45
WriteUnformattedMethod · 0.45

Tested by

no test coverage detected