CTraceLog Class Reference#include <TraceLog.h>
Inheritance diagram for CTraceLog:
![]()
Collaboration diagram for CTraceLog:
![]()
Detailed DescriptionDefinition at line 48 of file TraceLog.h. Constructor & Destructor Documentation
Member Function Documentation
Implements CErrorHandler::CErrorHandler::CErrorLog. Definition at line 92 of file TraceLog.cpp. 00095 { 00096 //Delegate call 00097 WriteLog(rClass, 00098 rMethod, 00099 rMessage, 00100 CErrorHandler::lpError); 00101 }
Definition at line 57 of file TraceLog.cpp. 00061 { 00062 try 00063 { 00064 //Our error string 00065 std::string sPrefix; 00066 00067 //Our string to print 00068 switch (aPriority) 00069 { 00070 case CErrorHandler::lpMessage: 00071 sPrefix="***MESSAGE*** "; 00072 break; 00073 case CErrorHandler::lpCritical: 00074 sPrefix="***CRITICAL*** "; 00075 break; 00076 case CErrorHandler::lpError: 00077 sPrefix="***ERROR*** "; 00078 break; 00079 } 00080 00081 //Write to log 00082 ATLTRACE("%s %s, %s, %s\n",sPrefix.c_str(), 00083 rClass.c_str(), 00084 rMethod.c_str(), 00085 rMessage.c_str()); 00086 } 00087 catch (...) 00088 { 00089 } 00090 }
Implements CErrorHandler::CErrorHandler::CErrorLog. Definition at line 103 of file TraceLog.cpp. 00107 { 00108 //Delegate call 00109 WriteLog(rClass, 00110 rMethod, 00111 rMessage, 00112 aPriority); 00113 }
The documentation for this class was generated from the following files: |