Logger interface. More...
#include <logger.h>
Public Member Functions | |
Construction | |
CL_Logger () | |
Constructs a logger. | |
virtual | ~CL_Logger () |
Operations | |
void | enable () |
Enable logger for logging. | |
void | disable () |
Disable logging. | |
virtual void | log (const CL_StringRef &type, const CL_StringRef &text) |
Log text. | |
Static Public Attributes | |
Attributes | |
static std::vector< CL_Logger * > | instances |
Pointers to currently enabled logger. | |
static CL_Mutex | mutex |
Logger mutex object. |
Logger interface.
CL_Logger::CL_Logger | ( | ) |
Constructs a logger.
virtual CL_Logger::~CL_Logger | ( | ) | [virtual] |
void CL_Logger::disable | ( | ) |
Disable logging.
void CL_Logger::enable | ( | ) |
Enable logger for logging.
virtual void CL_Logger::log | ( | const CL_StringRef & | type, | |
const CL_StringRef & | text | |||
) | [virtual] |
Log text.
Reimplemented in CL_ConsoleLogger, and CL_FileLogger.
std::vector<CL_Logger*> CL_Logger::instances [static] |
Pointers to currently enabled logger.
CL_Mutex CL_Logger::mutex [static] |
Logger mutex object.