| 
    libsdr
    0.1.0
    
   A simple SDR library 
   | 
 
The logger class (singleton). More...
#include <logger.hh>
Public Member Functions | |
| virtual | ~Logger () | 
| Destructor.  More... | |
| void | log (const LogMessage &message) | 
| Logs a message.  More... | |
| void | addHandler (LogHandler *handler) | 
| Adds a message handler.  More... | |
Static Public Member Functions | |
| static Logger & | get () | 
| Returns the singleton instance of the logger.  More... | |
Protected Member Functions | |
| Logger () | |
| Hidden constructor.  More... | |
Protected Attributes | |
| std::list< LogHandler * > | _handler | 
| All registered handlers.  More... | |
Static Protected Attributes | |
| static Logger * | _instance = 0 | 
| The singleton instance.  More... | |
The logger class (singleton).
      
  | 
  protected | 
Hidden constructor.
Use get to obtain an instance. 
      
  | 
  virtual | 
Destructor.
| void Logger::addHandler | ( | LogHandler * | handler | ) | 
Adds a message handler.
The ownership of the hander is transferred to the logger instance.
      
  | 
  static | 
Returns the singleton instance of the logger.
| void Logger::log | ( | const LogMessage & | message | ) | 
Logs a message.
      
  | 
  protected | 
All registered handlers.
      
  | 
  staticprotected | 
The singleton instance.
 1.8.9.1