Retail products


Traffic interception SDK

Control every TCP/IP network connection

  • Route connections via proxy
  • Redirect connections and modify the data
  • Block connections and applications
SSL interception SDK

View SSL in plaintext and modify it

  • View the SSL stream decrypted in plaintext
  • Redirect SSL connection and modify decrypted data
  • Browser shows "SSL lock" without warnings

Documentation


CTraceLog Class Reference

#include <TraceLog.h>

Inheritance diagram for CTraceLog:
Collaboration diagram for CTraceLog:

List of all members.


Public Member Functions

void WriteLog (const std::string &rClass, const std::string &rMethod, const std::string &rMessage, CErrorHandler::LogPriority aPriority)
 CTraceLog ()
virtual ~CTraceLog ()
void SetAutoFlush (BOOL bFlush)
BOOL GetAutoFlush () const

Protected Member Functions

virtual void ReportError (const std::string &rClass, const std::string &rMethod, const std::string &rMessage)
virtual void WriteMessage (const std::string &rClass, const std::string &rMethod, const std::string &rMessage, CErrorHandler::LogPriority aPriority)

Detailed Description

Definition at line 48 of file TraceLog.h.


Constructor & Destructor Documentation

KOMODIA_NAMESPACE_START CTraceLog::CTraceLog (  ) 

Definition at line 49 of file TraceLog.cpp.

00049                      : CErrorHandler::CErrorLog()
00050 {
00051 }

CTraceLog::~CTraceLog (  )  [virtual]

Definition at line 53 of file TraceLog.cpp.

00054 {
00055 }


Member Function Documentation

BOOL CErrorHandler::CErrorHandler::CErrorLog::GetAutoFlush (  )  const [inherited]

Definition at line 80 of file ErrorHandler.cpp.

00081 {
00082     return m_bAutoFlush;
00083 }

void CTraceLog::ReportError ( const std::string &  rClass,
const std::string &  rMethod,
const std::string &  rMessage 
) [protected, virtual]

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 }

void CErrorHandler::CErrorHandler::CErrorLog::SetAutoFlush ( BOOL  bFlush  )  [inherited]

Definition at line 75 of file ErrorHandler.cpp.

00076 {
00077     m_bAutoFlush=bFlush;
00078 }

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

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 }

void CTraceLog::WriteMessage ( const std::string &  rClass,
const std::string &  rMethod,
const std::string &  rMessage,
CErrorHandler::LogPriority  aPriority 
) [protected, virtual]

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: