ClanLib  2.3.7
List of all members
CL_Logger Class Reference

Logger interface. More...

#include <logger.h>

Inheritance diagram for CL_Logger:
Inheritance graph
[legend]

Public Member Functions

Construction
 CL_Logger ()
 Constructs a logger. More...
 
virtual ~CL_Logger ()
 
Operations
void enable ()
 Enable logger for logging. More...
 
void disable ()
 Disable logging. More...
 
virtual void log (const CL_StringRef &type, const CL_StringRef &text)
 Log text. More...
 

Static Public Attributes

Attributes
static std::vector< CL_Logger * > instances
 Pointers to currently enabled logger. More...
 
static CL_Mutex mutex
 Logger mutex object. More...
 

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_FileLogger, and CL_ConsoleLogger.

Member Data Documentation

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

Pointers to currently enabled logger.

CL_Mutex CL_Logger::mutex
static

Logger mutex object.


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