|
Windows C++ Library
|
The logger used to write CRT output message to a file. More...
#include <TraceLogger.hpp>
Static Public Member Functions | |
| static void | Install () |
| Install the logger.. | |
| static void | SetLogFile (const tchar *pszLogFile) |
| Set the logfile. | |
| static void | EnableDialogs (bool bEnable) |
| Set whether to display ASSERTs. | |
Static Private Member Functions | |
| static int | ReportHook (int, char *pszMessage, int *piRetVal) |
| The CRT callback.function. | |
Static Private Attributes | |
| static tchar | g_szTraceLog [MAX_PATH+1] |
| Trace log file path. | |
| static bool | g_bNewLine = true |
| Did last message include CRLF? | |
| static bool | g_bConsume = false |
| Disable ASSERT dialogs? | |
The logger used to write CRT output message to a file.
This class consists entirely of static members and functions as once installed, it can never be uninstalled.
| void WCL::TraceLogger::Install | ( | ) | [static] |
Install the logger..
Install the logger.
| void WCL::TraceLogger::SetLogFile | ( | const tchar * | pszLogFile | ) | [static] |
Set the logfile.
| void WCL::TraceLogger::EnableDialogs | ( | bool | bEnable | ) | [static] |
Set whether to display ASSERTs.
| int WCL::TraceLogger::ReportHook | ( | int | , |
| char * | pszMessage, | ||
| int * | piRetVal | ||
| ) | [static, private] |
The CRT callback.function.
The CRT hook function to write all TRACE and ASSERTs to a file.
tchar WCL::TraceLogger::g_szTraceLog [static, private] |
Trace log file path.
bool WCL::TraceLogger::g_bNewLine = true [static, private] |
Did last message include CRLF?
bool WCL::TraceLogger::g_bConsume = false [static, private] |
Disable ASSERT dialogs?
1.7.6.1