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

#include <csv_sink.h>

Public Member Functions

 CSVSink (const std::string &log_directory)
 
void appendToFile (g3::LogMessageMover log_entry)
 

Detailed Description

This class acts as a customer sink for g3log. In particular, it allows us to log to csv files.

Constructor & Destructor Documentation

◆ CSVSink()

CSVSink ( const std::string &  log_directory)

Creates a CSVSink that logs to the directory specified

Parameters
log_directorythe directory to save files to

Member Function Documentation

◆ appendToFile()

void appendToFile ( g3::LogMessageMover  log_entry)

This function is called on every call to LOG(CSV, filename). It appends to the specified file the message in log_entry. Note for .csv files: columns are separated with "," and rows are separated with new line characters.

Parameters
log_entrythe message received on a LOG() call

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