//
//  AppleLogger.cpp
//  react-native-filament
//
//  Created by Marc Rousavy on 05.03.24.
//

#include "RNFLogger.h"
#include <Foundation/Foundation.h>

namespace margelo {

void Logger::log(const std::string& tag, const std::string& message) {
#if RNF_ENABLE_LOGS
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
  NSLog(@"[RNF/%s]: %s", tag.c_str(), message.c_str());
#pragma clang diagnostic pop
#endif
}

} // namespace margelo
