Thunderbots Project
Loading...
Searching...
No Matches
NetworkLoggerSingleton Class Reference

#include <network_logger.h>

Static Public Member Functions

static void initializeLogger (RobotId robot_id, bool enable_log_merging)
 
static void replaceUdpSender (std::shared_ptr< ThreadedProtoUdpSender< TbotsProto::RobotLog > > new_sender)
 

Detailed Description

This class acts as a Singleton that's responsible for initializing the logger.

Member Function Documentation

◆ initializeLogger()

void initializeLogger ( RobotId  robot_id,
bool  enable_log_merging 
)
static

Initializes a g3log logger for the calling program. This should only be called once at the start of a program.

◆ replaceUdpSender()

void replaceUdpSender ( std::shared_ptr< ThreadedProtoUdpSender< TbotsProto::RobotLog > >  new_sender)
static

Updates the underlying UDP sender associated with this network sink. Useful when a new FullSystem is connected.


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