|
Thunderbots Project
|
#include <csv_sink.h>
Public Member Functions | |
| CSVSink (const std::string &log_directory) | |
| void | appendToFile (g3::LogMessageMover log_entry) |
This class acts as a customer sink for g3log. In particular, it allows us to log to csv files.
| CSVSink | ( | const std::string & | log_directory | ) |
Creates a CSVSink that logs to the directory specified
| log_directory | the directory to save files to |
| 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.
| log_entry | the message received on a LOG() call |