Pyrogenesis
13997
|
Helper class for unit tests - captures all log output while it is in scope, and returns it as a single string. More...
#include <CLogger.h>
Public Member Functions | |
TestLogger () | |
~TestLogger () | |
std::wstring | GetOutput () |
Private Member Functions | |
NONCOPYABLE (TestLogger) | |
Private Attributes | |
CLogger * | m_OldLogger |
std::stringstream | m_Stream |
Helper class for unit tests - captures all log output while it is in scope, and returns it as a single string.
TestLogger::TestLogger | ( | ) |
Definition at line 389 of file CLogger.cpp.
TestLogger::~TestLogger | ( | ) |
Definition at line 395 of file CLogger.cpp.
std::wstring TestLogger::GetOutput | ( | ) |
Definition at line 401 of file CLogger.cpp.
|
private |