Essentia  2.1-beta5-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 
)

Referenced by Logger::Logger().

◆ error()

void error ( const std::string &  msg)

Referenced by Logger::Logger().

◆ flush()

void flush ( )
protected

◆ info()

void info ( const std::string &  msg)

Referenced by Logger::Logger().

◆ warning()

void warning ( const std::string &  msg)

Referenced by Logger::Logger().

Member Data Documentation

◆ _addHeader

bool _addHeader
protected

◆ _msgQueue

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

◆ GREEN_FONT

std::string GREEN_FONT
protected

◆ RED_FONT

std::string RED_FONT
protected

◆ RESET_FONT

std::string RESET_FONT
protected

◆ YELLOW_FONT

std::string YELLOW_FONT
protected

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