![]() |
WriteLog() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: TraceLog.h |
void WriteLog( const std::string& rClass, const std::string& rMethod, const std::string& rMessage, CErrorHandler::LogPriority aPriority);
Write to log, thread safe
try { //Our error string std::string sPrefix; //Our string to print switch (aPriority) { case CErrorHandler::lpMessage: sPrefix="***MESSAGE*** "; break; case CErrorHandler::lpCritical: sPrefix="***CRITICAL*** "; break; case CErrorHandler::lpError: sPrefix="***ERROR*** "; break; } //Write to log ATLTRACE("%s %s, %s, %s\n",sPrefix.c_str(), rClass.c_str(), rMethod.c_str(), rMessage.c_str()); } catch (...) { }
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |