27 lines
492 B
C++
27 lines
492 B
C++
#pragma once
|
|
|
|
/**
|
|
* @file telemetry.hpp
|
|
* @brief Structured logging and telemetry for FCES.
|
|
*/
|
|
|
|
#include <string>
|
|
|
|
namespace fces {
|
|
|
|
class Telemetry {
|
|
public:
|
|
static Telemetry &get();
|
|
|
|
void info(const std::string &event, const std::string &detail = "");
|
|
void warning(const std::string &event, const std::string &detail = "");
|
|
void error(const std::string &event, const std::string &detail = "");
|
|
|
|
void push_to_remote();
|
|
|
|
private:
|
|
Telemetry() = default;
|
|
};
|
|
|
|
} // namespace fces
|