style: run clang-format and configure pre-commit hooks
This commit is contained in:
@@ -1,34 +1,37 @@
|
||||
#include "fces/telemetry.hpp"
|
||||
#include <iostream>
|
||||
#include <chrono>
|
||||
#include <iostream>
|
||||
|
||||
namespace fces {
|
||||
|
||||
Telemetry& Telemetry::get() {
|
||||
static Telemetry instance;
|
||||
return instance;
|
||||
Telemetry &Telemetry::get() {
|
||||
static Telemetry instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
void Telemetry::info(const std::string& event, const std::string& detail) {
|
||||
std::cout << "[INFO] " << event;
|
||||
if (!detail.empty()) std::cout << " | " << detail;
|
||||
std::cout << std::endl;
|
||||
void Telemetry::info(const std::string &event, const std::string &detail) {
|
||||
std::cout << "[INFO] " << event;
|
||||
if (!detail.empty())
|
||||
std::cout << " | " << detail;
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
void Telemetry::warning(const std::string& event, const std::string& detail) {
|
||||
std::cerr << "[WARN] " << event;
|
||||
if (!detail.empty()) std::cerr << " | " << detail;
|
||||
std::cerr << std::endl;
|
||||
void Telemetry::warning(const std::string &event, const std::string &detail) {
|
||||
std::cerr << "[WARN] " << event;
|
||||
if (!detail.empty())
|
||||
std::cerr << " | " << detail;
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
|
||||
void Telemetry::error(const std::string& event, const std::string& detail) {
|
||||
std::cerr << "[ERROR] " << event;
|
||||
if (!detail.empty()) std::cerr << " | " << detail;
|
||||
std::cerr << std::endl;
|
||||
void Telemetry::error(const std::string &event, const std::string &detail) {
|
||||
std::cerr << "[ERROR] " << event;
|
||||
if (!detail.empty())
|
||||
std::cerr << " | " << detail;
|
||||
std::cerr << std::endl;
|
||||
}
|
||||
|
||||
void Telemetry::push_to_remote() {
|
||||
// TODO: Implement telemetry push (Git sync, file export, etc.)
|
||||
// TODO: Implement telemetry push (Git sync, file export, etc.)
|
||||
}
|
||||
|
||||
} // namespace fces
|
||||
} // namespace fces
|
||||
|
||||
Reference in New Issue
Block a user