RTXI  3.0.0
The Real-Time eXperiment Interface Reference Manual
logger.hpp
Go to the documentation of this file.
1 #ifndef LOGGER_HPP
2 #define LOGGER_HPP
3 
4 #include <filesystem>
5 #include <mutex>
6 #include <sstream>
7 
8 #include "event.hpp"
9 #include "rt.hpp"
10 
15 {
16 public:
29  void log(Event::Object* event);
30 
42  void log(RT::Telemitry::Response response);
43 
44 private:
45  std::filesystem::path logfile;
46  std::stringstream ss;
47  std::mutex log_mutex;
48 };
49 
50 #endif
void log(Event::Object *event)
Definition: logger.cpp:12