4#include <frc/geometry/Pose2d.h>
6#include <wpi/sendable/Sendable.h>
22 virtual void logVerbose(std::string key,
const std::string format, ...) = 0;
23 virtual void logInfo(std::string key,
const std::string format, ...) = 0;
24 virtual void logWarning(std::string key,
const std::string format, ...) = 0;
25 virtual void logError(std::string key,
const std::string format, ...) = 0;
26 virtual void logFatal(std::string key,
const std::string format, ...) = 0;
30 virtual void logInfo(std::string key,
int val) = 0;
32 virtual void logError(std::string key,
int val) = 0;
33 virtual void logFatal(std::string key,
int val) = 0;
36 virtual void logVerbose(std::string key,
double val) = 0;
37 virtual void logInfo(std::string key,
double val) = 0;
38 virtual void logWarning(std::string key,
double val) = 0;
39 virtual void logError(std::string key,
double val) = 0;
40 virtual void logFatal(std::string key,
double val) = 0;
43 virtual void logInfo(std::string key,
bool val) = 0;
46 virtual void logError(std::string key,
bool val) = 0;
47 virtual void logFatal(std::string key,
bool val) = 0;
50 virtual void logInfo(std::string key, frc::Pose2d &val) = 0;
51 virtual void logVerbose(std::string key, frc::Pose2d &val) = 0;
52 virtual void logWarning(std::string key, frc::Pose2d &val) = 0;
53 virtual void logError(std::string key, frc::Pose2d &val) = 0;
54 virtual void logFatal(std::string key, frc::Pose2d &val) = 0;
57 virtual void logInfo(std::string key, wpi::Sendable *val) = 0;
58 virtual void logVerbose(std::string key, wpi::Sendable *val) = 0;
59 virtual void logWarning(std::string key, wpi::Sendable *val) = 0;
60 virtual void logError(std::string key, wpi::Sendable *val) = 0;
61 virtual void logFatal(std::string key, wpi::Sendable *val) = 0;
65 using namespace Logging;
79 return "INVALID LOG LEVEL";
85 vsnprintf(buf,
sizeof(buf), format.c_str(), ap);
87 return std::string(buf);
93 frc::to_json(json, pose);
virtual void logVerbose(std::string key, bool val)=0
virtual void logFatal(std::string key, const std::string format,...)=0
virtual void logVerbose(std::string key, double val)=0
virtual void logVerbose(std::string key, int val)=0
virtual void logError(std::string key, int val)=0
virtual void logError(std::string key, const std::string format,...)=0
virtual void logInfo(std::string key, bool val)=0
virtual void logError(std::string key, wpi::Sendable *val)=0
virtual void logFatal(std::string key, int val)=0
bool shouldLog(Logging::Level level)
virtual void logError(std::string key, double val)=0
std::string poseToString(const frc::Pose2d &pose)
virtual void logError(std::string key, frc::Pose2d &val)=0
virtual void logFatal(std::string key, wpi::Sendable *val)=0
virtual void logFatal(std::string key, frc::Pose2d &val)=0
std::string levelToString(Logging::Level level) const
virtual void logInfo(std::string key, int val)=0
virtual void logVerbose(std::string key, wpi::Sendable *val)=0
virtual void logVerbose(std::string key, frc::Pose2d &val)=0
virtual void logInfo(std::string key, frc::Pose2d &val)=0
virtual void logFatal(std::string key, bool val)=0
virtual void logInfo(std::string key, double val)=0
virtual void logWarning(std::string key, bool val)=0
virtual void logFatal(std::string key, double val)=0
virtual void logVerbose(std::string key, const std::string format,...)=0
virtual void logWarning(std::string key, const std::string format,...)=0
virtual void logWarning(std::string key, frc::Pose2d &val)=0
virtual void logInfo(std::string key, wpi::Sendable *val)=0
virtual void logError(std::string key, bool val)=0
virtual void logWarning(std::string key, wpi::Sendable *val)=0
virtual void logWarning(std::string key, int val)=0
virtual void logWarning(std::string key, double val)=0
virtual void logInfo(std::string key, const std::string format,...)=0
std::string formatString(const std::string format, va_list ap)
constexpr auto kMinLogLevel
Will not log messages that fall below this level.