Files
nitro/packages/react-native-nitro-modules/cpp/utils/NitroLogger.hpp
T
2024-06-20 10:47:50 +02:00

24 lines
467 B
C++

//
// Created by Marc Rousavy on 05.03.24.
//
#pragma once
#include <iostream>
#include <string>
namespace margelo {
class Logger {
private:
Logger() = delete;
public:
template <typename... Args> inline static void log(const std::string& tag, const std::string& message, Args&&... args) {
// TODO: Allow formatting args into message so they get printed as well.
std::cout << "[" << tag << "] " << message << std::endl;
}
};
} // namespace margelo