1#import <Foundation/Foundation.h> 2#import <RNReanimated/REAIOSLogger.h> 3 4namespace reanimated { 5 6std::unique_ptr<LoggerInterface> Logger::instance = std::make_unique<REAIOSLogger>(); 7 8void REAIOSLogger::log(const char *str) 9{ 10 NSLog(@"%@", [NSString stringWithCString:str encoding:[NSString defaultCStringEncoding]]); 11} 12 13void REAIOSLogger::log(double d) 14{ 15 NSLog(@"%lf", d); 16} 17 18void REAIOSLogger::log(int i) 19{ 20 NSLog(@"%i", i); 21} 22 23void REAIOSLogger::log(bool b) 24{ 25 const char *str = (b) ? "true" : "false"; 26 NSLog(@"%@", [NSString stringWithCString:str encoding:[NSString defaultCStringEncoding]]); 27} 28 29} // namespace reanimated 30