YARP
Yet Another Robot Platform
yarp::yarpLogger::LoggerEngine Class Reference

#include <yarp/logger/YarpLogger.h>

Public Member Functions

void discover (std::list< std::string > &ports)
 
void connect (const std::list< std::string > &ports)
 
 LoggerEngine (std::string portName)
 
 ~LoggerEngine ()
 
bool start_logging ()
 
bool stop_logging ()
 
void start_discover ()
 
void stop_discover ()
 
bool is_logging ()
 
bool is_discovering ()
 
bool clear ()
 
bool save_all_logs_to_file (std::string filename)
 
bool load_all_logs_from_file (std::string filename)
 
bool export_log_to_text_file (std::string filename, std::string portname)
 
int get_num_of_processes ()
 
void get_infos (std::list< LogEntryInfo > &infos)
 
void get_messages (std::list< MessageEntry > &messages)
 
void get_messages_by_port_prefix (std::string port, std::list< MessageEntry > &messages, bool from_beginning=false)
 
void get_messages_by_port_complete (std::string port, std::list< MessageEntry > &messages, bool from_beginning=false)
 
void get_messages_by_process (std::string process, std::list< MessageEntry > &messages, bool from_beginning=false)
 
void get_messages_by_pid (std::string pid, std::list< MessageEntry > &messages, bool from_beginning=false)
 
void clear_messages_by_port_complete (std::string port)
 
void set_log_enable_by_port_complete (std::string port, bool enable)
 
bool get_log_enable_by_port_complete (std::string port)
 
void set_listen_option (LogLevel logLevel, bool enable)
 
void set_listen_option (std::string option, bool enable)
 
void set_listen_option (LogSystemEnum logSystem, bool enable)
 
bool get_listen_option (LogLevel logLevel)
 
bool get_listen_option (std::string option)
 
bool get_listen_option (LogSystemEnum logSystem)
 
void set_log_lines_max_size (bool enabled, int new_size)
 
void set_log_list_max_size (bool enabled, int new_size)
 
void get_log_lines_max_size (bool &enabled, int &current_size)
 
void get_log_list_max_size (bool &enabled, int &current_size)
 
std::list< MessageEntryfilter_by_level (int level, const std::list< MessageEntry > &messages)
 

Detailed Description

Definition at line 208 of file YarpLogger.h.

Constructor & Destructor Documentation

◆ LoggerEngine()

LoggerEngine::LoggerEngine ( std::string  portName)

Definition at line 555 of file YarpLogger.cpp.

◆ ~LoggerEngine()

LoggerEngine::~LoggerEngine ( )

Definition at line 562 of file YarpLogger.cpp.

Member Function Documentation

◆ clear()

bool LoggerEngine::clear ( )

Definition at line 1040 of file YarpLogger.cpp.

◆ clear_messages_by_port_complete()

void LoggerEngine::clear_messages_by_port_complete ( std::string  port)

Definition at line 636 of file YarpLogger.cpp.

◆ connect()

void LoggerEngine::connect ( const std::list< std::string > &  ports)

Definition at line 179 of file YarpLogger.cpp.

◆ discover()

void LoggerEngine::discover ( std::list< std::string > &  ports)

Definition at line 98 of file YarpLogger.cpp.

◆ export_log_to_text_file()

bool LoggerEngine::export_log_to_text_file ( std::string  filename,
std::string  portname 
)

Definition at line 816 of file YarpLogger.cpp.

◆ filter_by_level()

std::list<MessageEntry> yarp::yarpLogger::LoggerEngine::filter_by_level ( int  level,
const std::list< MessageEntry > &  messages 
)

◆ get_infos()

void LoggerEngine::get_infos ( std::list< LogEntryInfo > &  infos)

Definition at line 579 of file YarpLogger.cpp.

◆ get_listen_option() [1/3]

bool LoggerEngine::get_listen_option ( LogLevel  logLevel)

Definition at line 774 of file YarpLogger.cpp.

◆ get_listen_option() [2/3]

bool LoggerEngine::get_listen_option ( LogSystemEnum  logSystem)

Definition at line 808 of file YarpLogger.cpp.

◆ get_listen_option() [3/3]

bool LoggerEngine::get_listen_option ( std::string  option)

Definition at line 794 of file YarpLogger.cpp.

◆ get_log_enable_by_port_complete()

bool LoggerEngine::get_log_enable_by_port_complete ( std::string  port)

Definition at line 1066 of file YarpLogger.cpp.

◆ get_log_lines_max_size()

void LoggerEngine::get_log_lines_max_size ( bool &  enabled,
int &  current_size 
)

Definition at line 1020 of file YarpLogger.cpp.

◆ get_log_list_max_size()

void LoggerEngine::get_log_list_max_size ( bool &  enabled,
int &  current_size 
)

Definition at line 1031 of file YarpLogger.cpp.

◆ get_messages()

void LoggerEngine::get_messages ( std::list< MessageEntry > &  messages)

Definition at line 592 of file YarpLogger.cpp.

◆ get_messages_by_pid()

void LoggerEngine::get_messages_by_pid ( std::string  pid,
std::list< MessageEntry > &  messages,
bool  from_beginning = false 
)

Definition at line 716 of file YarpLogger.cpp.

◆ get_messages_by_port_complete()

void LoggerEngine::get_messages_by_port_complete ( std::string  port,
std::list< MessageEntry > &  messages,
bool  from_beginning = false 
)

Definition at line 653 of file YarpLogger.cpp.

◆ get_messages_by_port_prefix()

void LoggerEngine::get_messages_by_port_prefix ( std::string  port,
std::list< MessageEntry > &  messages,
bool  from_beginning = false 
)

Definition at line 605 of file YarpLogger.cpp.

◆ get_messages_by_process()

void LoggerEngine::get_messages_by_process ( std::string  process,
std::list< MessageEntry > &  messages,
bool  from_beginning = false 
)

Definition at line 685 of file YarpLogger.cpp.

◆ get_num_of_processes()

int LoggerEngine::get_num_of_processes ( )

Definition at line 572 of file YarpLogger.cpp.

◆ is_discovering()

bool yarp::yarpLogger::LoggerEngine::is_discovering ( )
inline

Definition at line 256 of file YarpLogger.h.

◆ is_logging()

bool yarp::yarpLogger::LoggerEngine::is_logging ( )
inline

Definition at line 255 of file YarpLogger.h.

◆ load_all_logs_from_file()

bool LoggerEngine::load_all_logs_from_file ( std::string  filename)

Definition at line 915 of file YarpLogger.cpp.

◆ save_all_logs_to_file()

bool LoggerEngine::save_all_logs_to_file ( std::string  filename)

Definition at line 842 of file YarpLogger.cpp.

◆ set_listen_option() [1/3]

void LoggerEngine::set_listen_option ( LogLevel  logLevel,
bool  enable 
)

Definition at line 760 of file YarpLogger.cpp.

◆ set_listen_option() [2/3]

void LoggerEngine::set_listen_option ( LogSystemEnum  logSystem,
bool  enable 
)

Definition at line 799 of file YarpLogger.cpp.

◆ set_listen_option() [3/3]

void LoggerEngine::set_listen_option ( std::string  option,
bool  enable 
)

Definition at line 787 of file YarpLogger.cpp.

◆ set_log_enable_by_port_complete()

void LoggerEngine::set_log_enable_by_port_complete ( std::string  port,
bool  enable 
)

Definition at line 1049 of file YarpLogger.cpp.

◆ set_log_lines_max_size()

void LoggerEngine::set_log_lines_max_size ( bool  enabled,
int  new_size 
)

Definition at line 995 of file YarpLogger.cpp.

◆ set_log_list_max_size()

void LoggerEngine::set_log_list_max_size ( bool  enabled,
int  new_size 
)

Definition at line 1011 of file YarpLogger.cpp.

◆ start_discover()

void LoggerEngine::start_discover ( )

Definition at line 542 of file YarpLogger.cpp.

◆ start_logging()

bool LoggerEngine::start_logging ( )

Definition at line 497 of file YarpLogger.cpp.

◆ stop_discover()

void LoggerEngine::stop_discover ( )

Definition at line 550 of file YarpLogger.cpp.

◆ stop_logging()

bool LoggerEngine::stop_logging ( )

Definition at line 533 of file YarpLogger.cpp.


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