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

bool WriteLog (const std::string &rMessage)
 CTraceLog ()
virtual ~CTraceLog ()
void SetAutoFlush (BOOL bFlush)
BOOL GetAutoFlush () const

Protected Member Functions

virtual void WriteError (const std::string &rError)
virtual void WriteMessage (const std::string &rMessage)

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 CErrorHandler::CErrorHandler::CErrorLog::SetAutoFlush ( BOOL  bFlush  )  [inherited]

Definition at line 75 of file ErrorHandler.cpp.

00076 {
00077     m_bAutoFlush=bFlush;
00078 }

void CTraceLog::WriteError ( const std::string &  rError  )  [protected, virtual]

Implements CErrorHandler::CErrorHandler::CErrorLog.

Definition at line 87 of file TraceLog.cpp.

00088 {
00089     WriteLog(rError);
00090 }

bool CTraceLog::WriteLog ( const std::string &  rMessage  ) 

Definition at line 57 of file TraceLog.cpp.

00058 {
00059     try
00060     {
00061 #ifdef _MSC_VER
00062         //Check size is OK
00063         if (rMessage.size()<500)
00064         {
00065             //Write to log
00066             ATLTRACE("%s\n",rMessage.c_str());
00067         }
00068         else
00069         {
00070             //Copy it
00071             std::string sTmp;
00072             sTmp=rMessage.substr(0,499);
00073 
00074             //Write to log
00075             ATLTRACE("%s\n",sTmp.c_str());
00076         }
00077 
00078 #endif
00079         return true;
00080     }
00081     catch (...)
00082     {
00083         return false;
00084     }
00085 }

void CTraceLog::WriteMessage ( const std::string &  rMessage  )  [protected, virtual]

Implements CErrorHandler::CErrorHandler::CErrorLog.

Definition at line 92 of file TraceLog.cpp.

00093 {
00094     WriteLog(rMessage);
00095 }


The documentation for this class was generated from the following files: