SOLA
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
natter::logging::LoggerInterface Class Referenceabstract

#include <logger_interface.h>

Inheritance diagram for natter::logging::LoggerInterface:
natter::logging::NatterLoggerNs3

Public Member Functions

 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
 

Protected Attributes

std::string uuid_
 

Detailed Description

Interface for loggers. Inherit from this to implement your own logger.

Member Function Documentation

◆ logCritical()

virtual void natter::logging::LoggerInterface::logCritical ( const std::string &  msg) const
pure virtual

Log critical message

Parameters
msgmessage

◆ logDebug()

virtual void natter::logging::LoggerInterface::logDebug ( const std::string &  msg) const
pure virtual

Log debug message

Parameters
msgmessage

◆ logInfo()

virtual void natter::logging::LoggerInterface::logInfo ( const std::string &  msg) const
pure virtual

Log info message

Parameters
msgmessage

◆ 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
msgmessage content
msg_uuidmessage 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
ipip of new peer
portport of new peer
uuiduuid of new peer
topictopic 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_uuidmessage uuid
sendersender node uuid
own_uuidown 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
ipip of removed peer
portport of removed peer
uuiduuid of removed peer
topictopic 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_uuidmessage uuid
uuidtarget node uuid
own_uuidown node uuid

◆ logWarning()

virtual void natter::logging::LoggerInterface::logWarning ( const std::string &  msg) const
pure virtual

Log warning message

Parameters
msgmessage

◆ 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
app_uuidapplication uuid

Implemented in natter::logging::NatterLoggerNs3.


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