newsmemory-ios-sdk/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Logger.h

23 lines
380 B
C
Raw Normal View History

2024-10-29 07:36:43 +00:00
#pragma once
#include <memory>
#include "./LoggerInterface.h"
namespace reanimated {
class Logger {
public:
template <typename T>
static void log(T value) {
if (instance == nullptr) {
throw std::runtime_error("no logger specified");
}
instance->log(value);
}
private:
static std::unique_ptr<LoggerInterface> instance;
};
} // namespace reanimated