| 1035 | } |
| 1036 | |
| 1037 | XN_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 | |
| 1061 | XN_C_API void xnLogWriteBinaryData(const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFile, XnUInt32 nLine, XnUChar* pBinData, XnUInt32 nDataSize, const XnChar* csFormat, ...) |
| 1062 | { |
nothing calls this directly
no test coverage detected