summaryrefslogtreecommitdiffstats
path: root/BrowserSource/Proxy/Logging.h
blob: 767821fd5b7eb21d778249f02ad331d813ca8744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#pragma once

#include <fmt/core.h>
#include <iostream>
#include <string>
#include <string_view>

namespace Logging {
	// Usage: Log("{}\n", "Hello, world!");
	template<typename... Args>
	void Log(std::string_view format, Args&&... args) {
		const std::string raw = fmt::vformat(format, fmt::make_format_args(args...));

    std::cout << raw;
	}
}