Logger interface.  
 More...
#include <logger.h>
|  | 
|  | Logger () | 
|  | Constructs a logger. 
 | 
|  | 
| virtual | ~Logger () | 
|  | 
| void | disable () | 
|  | Disable logging. 
 | 
|  | 
| void | enable () | 
|  | Enable logger for logging. 
 | 
|  | 
| virtual void | log (const std::string &type, const std::string &text)=0 | 
|  | Log text. 
 | 
|  | 
|  | 
| static std::vector< Logger * > | instances | 
|  | Pointers to currently enabled logger. 
 | 
|  | 
| static std::recursive_mutex | mutex | 
|  | Logger mutex object. 
 | 
|  | 
◆ Logger()
◆ ~Logger()
  
  | 
        
          | virtual clan::Logger::~Logger | ( |  | ) |  |  | virtual | 
 
 
◆ disable()
      
        
          | void clan::Logger::disable | ( |  | ) |  | 
      
 
 
◆ enable()
      
        
          | void clan::Logger::enable | ( |  | ) |  | 
      
 
Enable logger for logging. 
 
 
◆ get_log_string()
  
  | 
        
          | static StringFormat clan::Logger::get_log_string | ( | const std::string & | type, |  
          |  |  | const std::string & | text ) |  | staticprotected | 
 
 
◆ log()
  
  | 
        
          | virtual void clan::Logger::log | ( | const std::string & | type, |  
          |  |  | const std::string & | text ) |  | pure virtual | 
 
 
◆ instances
  
  | 
        
          | std::vector<Logger*> clan::Logger::instances |  | static | 
 
Pointers to currently enabled logger. 
 
 
◆ mutex
  
  | 
        
          | std::recursive_mutex clan::Logger::mutex |  | static | 
 
 
The documentation for this class was generated from the following file: