Class CTraceLog::
WriteLog()
Base ClassesConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ReportErrorNext page: WriteMessage    Show member index
Public Function Declared in:
TraceLog.h

'Declaration' icon -- Shortcut to top of page. Declaration

void WriteLog(
    const std::string& rClass,
    const std::string& rMethod,
    const std::string& rMessage,
    CErrorHandler::LogPriority aPriority);

'Description' icon -- Shortcut to top of page. Description

Write to log, thread safe

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler::CErrorLog  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.