Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
logger.hpp
Go to the documentation of this file.
1#ifndef PACSCIMLOGGER_HPP
2#define PACSCIMLOGGER_HPP
3
4#include "rclcpp/rclcpp.hpp"
5#include <string>
6
7class Logger
8{
9public:
10 void logInfo(std::string in) { RCLCPP_INFO_STREAM(rclcpp::get_logger("pacsim_logger"), in); }
11
12 void logWarning(std::string in) { RCLCPP_WARN_STREAM(rclcpp::get_logger("pacsim_logger"), in); }
13
14 void logError(std::string in) { RCLCPP_ERROR_STREAM(rclcpp::get_logger("pacsim_logger"), in); }
15
16 void logFatal(std::string in) { RCLCPP_FATAL_STREAM(rclcpp::get_logger("pacsim_logger"), in); }
17
18 void logDebug(std::string in) { RCLCPP_DEBUG_STREAM(rclcpp::get_logger("pacsim_logger"), in); }
19};
20
21#endif /* PACSCIMLOGGER_HPP */
void logError(std::string in)
Definition logger.hpp:14
void logDebug(std::string in)
Definition logger.hpp:18
void logWarning(std::string in)
Definition logger.hpp:12
void logFatal(std::string in)
Definition logger.hpp:16
void logInfo(std::string in)
Definition logger.hpp:10