Pyrogenesis
trunk
|
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::string | 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 | ( | ) |
TestLogger::~TestLogger | ( | ) |
std::string TestLogger::GetOutput | ( | ) |
|
private |
|
private |
|
private |