|  | YARP Yet Another Robot Platform |  | 
 
 
 
Go to the documentation of this file.
   73                 return static_cast<int>(e_level);
 
   85                 else { 
return "<UNDEFINED>"; }
 
  100                 return this->e_level == other.e_level;
 
  104                 return this->e_level == other;
 
  108                 return this->e_level > other.e_level;
 
  126     std::string   
function;
 
  145     unsigned int  number_of_traces;
 
  146     unsigned int  number_of_debugs;
 
  147     unsigned int  number_of_infos;
 
  148     unsigned int  number_of_warnings;
 
  149     unsigned int  number_of_errors;
 
  150     unsigned int  number_of_fatals;
 
  179     unsigned int                  entry_list_max_size;
 
  180     bool                          entry_list_max_size_enabled;
 
  191         entry_list_max_size(_entry_list_max_size),
 
  192         entry_list_max_size_enabled(true),
 
  214         logger_thread (std::string _portname, 
double _period=0.01, 
int _log_list_max_size=100);
 
  217         unsigned int         log_list_max_size;
 
  218         bool                 log_list_max_size_enabled;
 
  219         std::list<LogEntry>  log_list;
 
  221         std::string          logger_portName;
 
  222         int                  unknown_format_received;
 
  225         std::string getPortName();
 
  227         void        threadRelease() 
override;
 
  228         bool        listen_to_LOGLEVEL_UNDEFINED;
 
  229         bool        listen_to_LOGLEVEL_TRACE;
 
  230         bool        listen_to_LOGLEVEL_DEBUG;
 
  231         bool        listen_to_LOGLEVEL_INFO;
 
  232         bool        listen_to_LOGLEVEL_WARNING;
 
  233         bool        listen_to_LOGLEVEL_ERROR;
 
  234         bool        listen_to_LOGLEVEL_FATAL;
 
  235         bool        listen_to_YARP_MESSAGES;
 
  236         bool        listen_to_YARPRUN_MESSAGES;
 
  242     logger_thread* log_updater;
 
  245     void discover             (std::list<std::string>& ports);
 
  246     void connect              (
const std::list<std::string>& ports);
 
  263     void get_infos                       (std::list<LogEntryInfo>&   infos);
 
  267     void get_messages_by_process         (std::string  process, std::list<MessageEntry>& messages, 
bool from_beginning = 
false);
 
  268     void get_messages_by_pid             (std::string  pid,     std::list<MessageEntry>& messages, 
bool from_beginning = 
false);
 
  285     std::list<MessageEntry> 
filter_by_level (
int level, 
const std::list<MessageEntry>& messages);
 
  
 
unsigned int get_number_of_fatals()
void clear_messages_by_port_complete(std::string port)
std::string yarprun_timestamp
bool operator==(const LogLevel &other) const
bool export_log_to_text_file(std::string filename, std::string portname)
unsigned int get_number_of_errors()
void set_log_enable_by_port_complete(std::string port, bool enable)
unsigned int get_number_of_traces()
std::vector< MessageEntry > entry_list
void get_infos(std::list< LogEntryInfo > &infos)
void get_messages_by_process(std::string process, std::list< MessageEntry > &messages, bool from_beginning=false)
void get_messages_by_port_prefix(std::string port, std::list< MessageEntry > &messages, bool from_beginning=false)
int get_num_of_processes()
LoggerEngine(std::string portName)
bool append_logEntry(MessageEntry entry)
void setLogEntryMaxSize(int size)
std::string toString() const
void set_log_lines_max_size(bool enabled, int new_size)
unsigned int get_number_of_debugs()
unsigned int get_number_of_infos()
void setLevel(LogLevelEnum level)
LogEntry(int _entry_list_max_size=10000)
void setNewError(LogLevel level)
std::list< MessageEntry > filter_by_level(int level, const std::list< MessageEntry > &messages)
void discover(std::list< std::string > &ports)
void setLogEntryMaxSizeEnabled(bool enable)
bool operator>(const LogLevel &other) const
std::string local_timestamp
bool getLogEntryMaxSizeEnabled()
unsigned int get_number_of_warnings()
An abstraction for a periodic thread.
yarp::yarpLogger::LogEntryInfo logInfo
std::string port_complete
bool load_all_logs_from_file(std::string filename)
void get_log_lines_max_size(bool &enabled, int ¤t_size)
bool operator==(const LogLevelEnum &other) const
bool save_all_logs_to_file(std::string filename)
The main, catch-all namespace for YARP.
void operator=(LogLevelEnum level)
void get_log_list_max_size(bool &enabled, int ¤t_size)
void get_messages_by_port_complete(std::string port, std::list< MessageEntry > &messages, bool from_beginning=false)
void set_listen_option(LogLevel logLevel, bool enable)
void set_log_list_max_size(bool enabled, int new_size)
void get_messages(std::list< MessageEntry > &messages)
void get_messages_by_pid(std::string pid, std::list< MessageEntry > &messages, bool from_beginning=false)
void connect(const std::list< std::string > &ports)
bool get_listen_option(LogLevel logLevel)
bool get_log_enable_by_port_complete(std::string port)