File logger. More...
#include <file_logger.h>

Public Member Functions | |
Construction | |
| CL_FileLogger (const CL_StringRef &filename) | |
| Constructs a file logger. | |
| ~CL_FileLogger () | |
Operations | |
| void | log (const CL_StringRef &type, const CL_StringRef &text) |
| Log text to file. | |
Operations | |
| void | enable () |
| Enable logger for logging. | |
| void | disable () |
| Disable logging. | |
Static Public Attributes | |
Attributes | |
| static std::vector< CL_Logger * > | instances |
| Pointers to currently enabled logger. | |
| static CL_Mutex | mutex |
| Logger mutex object. | |
File logger.
| CL_FileLogger::CL_FileLogger | ( | const CL_StringRef & | filename | ) |
Constructs a file logger.
| CL_FileLogger::~CL_FileLogger | ( | ) |
| void CL_Logger::disable | ( | ) | [inherited] |
Disable logging.
| void CL_Logger::enable | ( | ) | [inherited] |
Enable logger for logging.
| void CL_FileLogger::log | ( | const CL_StringRef & | type, | |
| const CL_StringRef & | text | |||
| ) | [virtual] |
Log text to file.
Reimplemented from CL_Logger.
std::vector<CL_Logger*> CL_Logger::instances [static, inherited] |
Pointers to currently enabled logger.
CL_Mutex CL_Logger::mutex [static, inherited] |
Logger mutex object.
1.7.1