SOLA
|
#include <logger.h>
Public Member Functions | |
void | addLogger (LoggerPtr logger) |
void | logCritical (const std::string &msg) const |
void | logWarning (const std::string &msg) const |
void | logInfo (const std::string &msg) const |
void | logDebug (const std::string &msg) const |
void | logNewPeer (const std::string &ip, uint16_t port, solanet::UUID uuid, const std::string &topic) const |
void | logRemovePeer (const std::string &ip, uint16_t port, solanet::UUID uuid, const std::string &topic) const |
void | logNewMessage (const std::string &topic, const std::string &msg, solanet::UUID msg_uuid) |
void | logSendFullMsg (solanet::UUID msg_uuid, solanet::UUID uuid, solanet::UUID own_uuid) |
void | logReceiveFullMsg (solanet::UUID msg_uuid, solanet::UUID sender, solanet::UUID own_uuid) |
void | logMinhcastBroadcast (solanet::UUID msg_id, uint32_t level, uint32_t number, uint32_t forward_up_limit, uint32_t forward_down_limit) |
void | logNewNetworkPeer (solanet::UUID uuid, const std::string &ip, uint16_t port, int level, int number) |
void | logReceivedMessages (solanet::UUID node_uuid, solanet::UUID initial_sender, solanet::UUID message, uint32_t round) |
LogLevel | getLogLevel () const |
void | setLogLevel (LogLevel logLevel) |
bool | isLoggingStrings () const |
void | setLogggingStrings (bool log_strings) |
Class holding a list of loggers to be called for logging
void natter::logging::Logger::addLogger | ( | LoggerPtr | logger | ) |
Add logger and use it for upcoming log-function calls
logger | logger to add |
LogLevel natter::logging::Logger::getLogLevel | ( | ) | const |
Returns current log level
bool natter::logging::Logger::isLoggingStrings | ( | ) | const |
Checks if logging string messages is enabled
void natter::logging::Logger::logCritical | ( | const std::string & | msg | ) | const |
Log critical message
msg | message to log |
void natter::logging::Logger::logDebug | ( | const std::string & | msg | ) | const |
Log debug message
msg | message to log |
void natter::logging::Logger::logInfo | ( | const std::string & | msg | ) | const |
Log info message
msg | message to log |
void natter::logging::Logger::logNewMessage | ( | const std::string & | topic, |
const std::string & | msg, | ||
solanet::UUID | msg_uuid | ||
) |
Log receive of application message
topic | topic of message |
msg | message content |
msg_uuid | message uuid |
void natter::logging::Logger::logNewPeer | ( | const std::string & | ip, |
uint16_t | port, | ||
solanet::UUID | uuid, | ||
const std::string & | topic | ||
) | const |
Log new peer-topic connection
ip | ip of new peer |
port | port of new peer |
uuid | uuid of new peer |
topic | topic the peer was added to |
void natter::logging::Logger::logReceiveFullMsg | ( | solanet::UUID | msg_uuid, |
solanet::UUID | sender, | ||
solanet::UUID | own_uuid | ||
) |
Log receiving full message
msg_uuid | message uuid |
sender | sender node uuid |
own_uuid | own node uuid |
void natter::logging::Logger::logRemovePeer | ( | const std::string & | ip, |
uint16_t | port, | ||
solanet::UUID | uuid, | ||
const std::string & | topic | ||
) | const |
Log removal of peer
ip | ip of removed peer |
port | port of removed peer |
uuid | uuid of removed peer |
topic | topic the peer was removed from |
void natter::logging::Logger::logSendFullMsg | ( | solanet::UUID | msg_uuid, |
solanet::UUID | uuid, | ||
solanet::UUID | own_uuid | ||
) |
Log sending full message
msg_uuid | message uuid |
uuid | target node uuid |
own_uuid | own node uuid |
void natter::logging::Logger::logWarning | ( | const std::string & | msg | ) | const |
Log warning message
msg | message to log |
void natter::logging::Logger::setLogggingStrings | ( | bool | log_strings | ) |
Sets if string messages should be logged
log_strings | true if string messages should be logged |
void natter::logging::Logger::setLogLevel | ( | LogLevel | logLevel | ) |
Sets logLevel
as current log level
logLevel | new log level |