mirror of
https://github.com/zoriya/nitro.git
synced 2026-10-13 00:05:23 +00:00
24 lines
467 B
C++
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
|