www.pudn.com > remote_thread.zip > Log.cpp
// Log.cpp: implementation of the CLog class. // ////////////////////////////////////////////////////////////////////// #include#include "Log.h" //--------------------------------- // Create the main log object //--------------------------------- CLog g_log; const int LINE_BUFFER_SIZE = 1024; ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CLog::CLog() { } CLog::~CLog() { } inline void CLog::ReallyPrintLine(char* line) { ::OutputDebugStringA( line ); } void CLog::ReallyPrint(const char* format, va_list ap) { //--------------------------- // - Write the log message //--------------------------- char line[LINE_BUFFER_SIZE]; wvsprintfA(line, format, ap); ReallyPrintLine(line); }