All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger.h File Reference
#include <map>
#include <iomanip>
#include <fstream>
#include <sstream>
#include "boost/assign.hpp"
#include <dynamic-graph/linear-algebra.h>
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Classes

class  dynamicgraph::Logger
 Class for logging messages. More...
 

Namespaces

 dynamicgraph
 This is the namespace where every object and class of this library is located.
 

Macros

#define LOGGER_EXPORT
 
#define LOGGER_VERBOSITY_ALL
 
#define SEND_MSG(msg, type)   sendMsg(msg,type,__FILE__,__LINE__)
 
#define SEND_DEBUG_STREAM_MSG(msg)   SEND_MSG(msg,MSG_TYPE_DEBUG_STREAM)
 
#define SEND_INFO_STREAM_MSG(msg)   SEND_MSG(msg,MSG_TYPE_INFO_STREAM)
 
#define SEND_WARNING_STREAM_MSG(msg)   SEND_MSG(msg,MSG_TYPE_WARNING_STREAM)
 
#define SEND_ERROR_STREAM_MSG(msg)   SEND_MSG(msg,MSG_TYPE_ERROR_STREAM)
 

Enumerations

enum  dynamicgraph::MsgType {
  dynamicgraph::MSG_TYPE_DEBUG =0,
  dynamicgraph::MSG_TYPE_INFO =1,
  dynamicgraph::MSG_TYPE_WARNING =2,
  dynamicgraph::MSG_TYPE_ERROR =3,
  dynamicgraph::MSG_TYPE_DEBUG_STREAM =4,
  dynamicgraph::MSG_TYPE_INFO_STREAM =5,
  dynamicgraph::MSG_TYPE_WARNING_STREAM =6,
  dynamicgraph::MSG_TYPE_ERROR_STREAM =7
}
 Enum representing the different kind of messages. More...
 
enum  dynamicgraph::LoggerVerbosity {
  dynamicgraph::VERBOSITY_ALL,
  dynamicgraph::VERBOSITY_INFO_WARNING_ERROR,
  dynamicgraph::VERBOSITY_WARNING_ERROR,
  dynamicgraph::VERBOSITY_ERROR,
  dynamicgraph::VERBOSITY_NONE
}
 

Functions

template<typename T >
std::string dynamicgraph::toString (const T &v, const int precision=3, const int width=-1)
 
template<typename T >
std::string dynamicgraph::toString (const std::vector< T > &v, const int precision=3, const int width=-1, const std::string separator=", ")
 
template<typename T >
std::string dynamicgraph::toString (const Eigen::MatrixBase< T > &v, const int precision=3, const int width=-1, const std::string separator=", ")
 

Macro Definition Documentation

#define LOGGER_EXPORT
#define LOGGER_VERBOSITY_ALL
#define SEND_DEBUG_STREAM_MSG (   msg)    SEND_MSG(msg,MSG_TYPE_DEBUG_STREAM)
#define SEND_ERROR_STREAM_MSG (   msg)    SEND_MSG(msg,MSG_TYPE_ERROR_STREAM)
#define SEND_INFO_STREAM_MSG (   msg)    SEND_MSG(msg,MSG_TYPE_INFO_STREAM)
#define SEND_MSG (   msg,
  type 
)    sendMsg(msg,type,__FILE__,__LINE__)
#define SEND_WARNING_STREAM_MSG (   msg)    SEND_MSG(msg,MSG_TYPE_WARNING_STREAM)