CL_Logger Class Reference
[clanCore Text]

Logger interface. More...

#include <logger.h>

Inheritance diagram for CL_Logger:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Logger interface.


Constructor & Destructor Documentation

CL_Logger::CL_Logger (  ) 

Constructs a logger.

virtual CL_Logger::~CL_Logger (  )  [virtual]

Member Function Documentation

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.


Member Data Documentation

std::vector<CL_Logger*> CL_Logger::instances [static]

Pointers to currently enabled logger.

Logger mutex object.


The documentation for this class was generated from the following file: