#include <logger_interface.h>
|
| LoggerInterface (std::string uuid) |
|
virtual void | logCritical (const std::string &msg) const =0 |
|
virtual void | logWarning (const std::string &msg) const =0 |
|
virtual void | logInfo (const std::string &msg) const =0 |
|
virtual void | logDebug (const std::string &msg) const =0 |
|
virtual void | logNewPeer (const std::string &ip, uint16_t port, solanet::UUID uuid, const std::string &topic) const =0 |
|
virtual void | logRemovePeer (const std::string &ip, uint16_t port, solanet::UUID uuid, const std::string &topic) const =0 |
|
virtual void | logNewMessage (const std::string &topic, const std::string &msg, solanet::UUID msg_uuid)=0 |
|
virtual void | logSendFullMsg (solanet::UUID msg_uuid, solanet::UUID uuid, solanet::UUID own_uuid)=0 |
|
virtual void | logReceiveFullMsg (solanet::UUID msg_uuid, solanet::UUID sender, solanet::UUID own_uuid)=0 |
|
virtual void | logMinhcastBroadcast (solanet::UUID msg_id, uint32_t level, uint32_t number, uint32_t forward_up_limit, uint32_t forward_down_limit)=0 |
|
virtual void | logNewNetworkPeer (solanet::UUID uuid, const std::string &ip, uint16_t port, int level, int number)=0 |
|
virtual void | logReceivedMessages (solanet::UUID node_uuid, solanet::UUID initial_sender, solanet::UUID message, uint32_t round)=0 |
|
virtual void | setApplicationUUID (const solanet::UUID &app_uuid)=0 |
|
Interface for loggers. Inherit from this to implement your own logger.
◆ logCritical()
virtual void natter::logging::LoggerInterface::logCritical |
( |
const std::string & |
msg | ) |
const |
|
pure virtual |
Log critical message
- Parameters
-
◆ logDebug()
virtual void natter::logging::LoggerInterface::logDebug |
( |
const std::string & |
msg | ) |
const |
|
pure virtual |
Log debug message
- Parameters
-
◆ logInfo()
virtual void natter::logging::LoggerInterface::logInfo |
( |
const std::string & |
msg | ) |
const |
|
pure virtual |
Log info message
- Parameters
-
◆ logNewMessage()
virtual void natter::logging::LoggerInterface::logNewMessage |
( |
const std::string & |
topic, |
|
|
const std::string & |
msg, |
|
|
solanet::UUID |
msg_uuid |
|
) |
| |
|
pure virtual |
Log receive of application message
- Parameters
-
msg | message content |
msg_uuid | message uuid |
◆ logNewPeer()
virtual void natter::logging::LoggerInterface::logNewPeer |
( |
const std::string & |
ip, |
|
|
uint16_t |
port, |
|
|
solanet::UUID |
uuid, |
|
|
const std::string & |
topic |
|
) |
| const |
|
pure virtual |
Log new peer-topic connection
- Parameters
-
ip | ip of new peer |
port | port of new peer |
uuid | uuid of new peer |
topic | topic the peer was added to |
◆ logReceiveFullMsg()
virtual void natter::logging::LoggerInterface::logReceiveFullMsg |
( |
solanet::UUID |
msg_uuid, |
|
|
solanet::UUID |
sender, |
|
|
solanet::UUID |
own_uuid |
|
) |
| |
|
pure virtual |
Log receiving full message
- Parameters
-
msg_uuid | message uuid |
sender | sender node uuid |
own_uuid | own node uuid |
◆ logRemovePeer()
virtual void natter::logging::LoggerInterface::logRemovePeer |
( |
const std::string & |
ip, |
|
|
uint16_t |
port, |
|
|
solanet::UUID |
uuid, |
|
|
const std::string & |
topic |
|
) |
| const |
|
pure virtual |
Log removal of peer
- Parameters
-
ip | ip of removed peer |
port | port of removed peer |
uuid | uuid of removed peer |
topic | topic the peer was removed from |
◆ logSendFullMsg()
virtual void natter::logging::LoggerInterface::logSendFullMsg |
( |
solanet::UUID |
msg_uuid, |
|
|
solanet::UUID |
uuid, |
|
|
solanet::UUID |
own_uuid |
|
) |
| |
|
pure virtual |
Log sending full message
- Parameters
-
msg_uuid | message uuid |
uuid | target node uuid |
own_uuid | own node uuid |
◆ logWarning()
virtual void natter::logging::LoggerInterface::logWarning |
( |
const std::string & |
msg | ) |
const |
|
pure virtual |
Log warning message
- Parameters
-
◆ setApplicationUUID()
virtual void natter::logging::LoggerInterface::setApplicationUUID |
( |
const solanet::UUID & |
app_uuid | ) |
|
|
pure virtual |
Set the UUID used for identifying application nodes. Used for loggers which are initialized before node starts.
- Parameters
-
Implemented in natter::logging::NatterLoggerNs3.
The documentation for this class was generated from the following file: