31 NatterLoggerNs3(LogDeviceApp log_device_application, LogFunction log, LogEvent log_event);
34 void logNewNetworkPeer(solanet::UUID uuid,
const std::string &ip, uint16_t port,
int level,
37 void logNs3PeerConnection(uint64_t timestamp,
bool active, solanet::UUID node_uuid,
38 solanet::UUID new_node_uuid);
40 void logReceivedMessages(solanet::UUID node_uuid, solanet::UUID initial_sender,
41 solanet::UUID message, uint32_t round_)
final;
47 LoggerInterface::uuid_ = solanet::uuidToString(app_uuid);
48 log_device_application_(uuid_);
54 enum class Mode : uint16_t { kReceive, kSend };
56 enum class MsgType : uint16_t { kUnknown, kFullMsg };
58 void logCritical(
const std::string &msg)
const final;
60 void logWarning(
const std::string &msg)
const final;
62 void logInfo(
const std::string &msg)
const final;
64 void logDebug(
const std::string &msg)
const final;
66 void logNewPeer(
const std::string &ip, uint16_t port, solanet::UUID uuid,
67 const std::string &topic)
const final;
69 void logRemovePeer(
const std::string &ip, uint16_t port, solanet::UUID uuid,
70 const std::string &topic)
const final;
72 void logNewMessage(
const std::string &topic,
const std::string &msg,
73 solanet::UUID msg_uuid)
final;
75 void logSendFullMsg(solanet::UUID msg_uuid, solanet::UUID uuid, solanet::UUID own_uuid)
final;
77 void logReceiveFullMsg(solanet::UUID msg_uuid, solanet::UUID sender,
78 solanet::UUID own_uuid)
final;
80 void logSendReceive(solanet::UUID msg_uuid, solanet::UUID sender, solanet::UUID own_uuid,
81 MsgType type, Mode mode);
83 void logMinhcastBroadcast(solanet::UUID msg_id, uint32_t level, uint32_t number,
84 uint32_t forward_up_limit, uint32_t forward_down_limit)
final;
87 LogDeviceApp log_device_application_;
void logNatterEvent(uint16_t event_type, solanet::UUID event_id)
Don't forget to use .c_str() to convert std::string into a char array.
Definition natter_logger_ns3.cpp:33