#include <Log2.h>
Public Member Functions | |
CLog2Factory () | |
virtual void | enableConsoleOutput (bool bEnabled) |
virtual void | enableFileOutput (bool bEnabled, const std::string &filename="") |
virtual void | enableTimeStamping (bool bEnabled) |
virtual void | flushFileOutput () |
virtual ELogLevel | getLevelFromString (const std::string &level) |
virtual CLogStream & | getLog (const std::string &name)=0 |
virtual void | redirectConsoleOutput (FILE *file) |
virtual void | setLevel (ELogLevel level) |
virtual | ~CLog2Factory () |
Protected Member Functions | |
void | closeOpenFiles () |
void | equalizeHeaderTexts () |
void | reportOpenFile (FILE *file, CLogStream &wrnReportLog) |
Protected Attributes | |
ELogLevel | mLevel |
std::map< const std::string, CLogStream * > | mLogs |
std::vector< FILE * > | mOpenFiles |
bool | mTimeStamping |
Friends | |
class | CLog2 |
CLog2Factory::CLog2Factory | ( | ) | [inline] |
virtual CLog2Factory::~CLog2Factory | ( | ) | [inline, virtual] |
void CLog2Factory::closeOpenFiles | ( | ) | [inline, protected] |
virtual void CLog2Factory::enableConsoleOutput | ( | bool | bEnabled | ) | [inline, virtual] |
virtual void CLog2Factory::enableFileOutput | ( | bool | bEnabled, |
const std::string & | filename = "" |
||
) | [inline, virtual] |
virtual void CLog2Factory::enableTimeStamping | ( | bool | bEnabled | ) | [inline, virtual] |
void CLog2Factory::equalizeHeaderTexts | ( | ) | [inline, protected] |
equalizeHeaderTexts() Can be called in getLog() after creating and adding a new log to make all header texts of equal length.
virtual void CLog2Factory::flushFileOutput | ( | ) | [inline, virtual] |
virtual ELogLevel CLog2Factory::getLevelFromString | ( | const std::string & | level | ) | [inline, virtual] |
virtual CLogStream& CLog2Factory::getLog | ( | const std::string & | name | ) | [pure virtual] |
Implemented in CStdLog2Factory.
virtual void CLog2Factory::redirectConsoleOutput | ( | FILE * | file | ) | [inline, virtual] |
void CLog2Factory::reportOpenFile | ( | FILE * | file, |
CLogStream & | wrnReportLog | ||
) | [inline, protected] |
virtual void CLog2Factory::setLevel | ( | ELogLevel | level | ) | [inline, virtual] |
ELogLevel CLog2Factory::mLevel [protected] |
std::map<const std::string, CLogStream*> CLog2Factory::mLogs [protected] |
std::vector<FILE*> CLog2Factory::mOpenFiles [protected] |
bool CLog2Factory::mTimeStamping [protected] |