Essentia  2.1-beta6-dev
Logger Class Reference

#include <debugging.h>

Public Member Functions

 Logger ()
 
void debug (DebuggingModule module, const std::string &msg, bool resetHeader=false)
 
void info (const std::string &msg)
 
void warning (const std::string &msg)
 
void error (const std::string &msg)
 

Protected Member Functions

void flush ()
 

Protected Attributes

std::deque< std::string > _msgQueue
 
bool _addHeader
 
std::string GREEN_FONT
 
std::string YELLOW_FONT
 
std::string RED_FONT
 
std::string RESET_FONT
 

Detailed Description

Asynchronous thread-safe logger object. (TODO: implementation is still not thread-safe)

Constructor & Destructor Documentation

◆ Logger()

Member Function Documentation

◆ debug()

void debug ( DebuggingModule  module,
const std::string &  msg,
bool  resetHeader = false 
)

◆ error()

void error ( const std::string &  msg)

◆ flush()

void flush ( )
protected

◆ info()

void info ( const std::string &  msg)

◆ warning()

void warning ( const std::string &  msg)

Member Data Documentation

◆ _addHeader

bool _addHeader
protected

◆ _msgQueue

std::deque<std::string> _msgQueue
protected

◆ GREEN_FONT

std::string GREEN_FONT
protected

Referenced by Logger::Logger().

◆ RED_FONT

std::string RED_FONT
protected

Referenced by Logger::Logger().

◆ RESET_FONT

std::string RESET_FONT
protected

Referenced by Logger::Logger().

◆ YELLOW_FONT

std::string YELLOW_FONT
protected

Referenced by Logger::Logger().


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