Logger interface. More...

#include <logger.h>

+ Inheritance diagram for clan::Logger:

Public Member Functions

 Logger ()
 Constructs a logger. More...
 
virtual ~Logger ()
 
void disable ()
 Disable logging. More...
 
void enable ()
 Enable logger for logging. More...
 
virtual void log (const std::string &type, const std::string &text)=0
 Log text. More...
 

Static Public Attributes

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

Static Protected Member Functions

static StringFormat get_log_string (const std::string &type, const std::string &text)
 

Detailed Description

Logger interface.

Constructor & Destructor Documentation

clan::Logger::Logger ( )

Constructs a logger.

virtual clan::Logger::~Logger ( )
virtual

Member Function Documentation

void clan::Logger::disable ( )

Disable logging.

void clan::Logger::enable ( )

Enable logger for logging.

static StringFormat clan::Logger::get_log_string ( const std::string type,
const std::string text 
)
staticprotected
virtual void clan::Logger::log ( const std::string type,
const std::string text 
)
pure virtual

Log text.

Implemented in clan::FileLogger, and clan::ConsoleLogger.

Member Data Documentation

std::vector<Logger*> clan::Logger::instances
static

Pointers to currently enabled logger.

std::recursive_mutex clan::Logger::mutex
static

Logger mutex object.


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