![]() |
WriteLog() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: TraceLog.h |
Declaration
void WriteLog(
const std::string& rClass,
const std::string& rMethod,
const std::string& rMessage,
CErrorHandler::LogPriority aPriority);
DescriptionWrite to log, thread safe
Function Body
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 (...)
{
}
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |