#pragma once #include #include "./LoggerInterface.h" namespace reanimated { class Logger { public: template static void log(T value) { if (instance == nullptr) { throw std::runtime_error("no logger specified"); } instance->log(value); } private: static std::unique_ptr instance; }; } // namespace reanimated